## SAC '22 Code Challenge 5 P1 - Querying Plants

View as PDF

Points: 3
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type

To compensate for the lack of plant life at SAC, Mr. DeMello has taken up gardening!

More specifically, he has plants that each have a height, , in centimetres.

Every time he waters his plants, all of them grow centimetres taller.

Given that Mr. DeMello teaches a math course, he forgot his addition tables and asked you to calculate the new lengths of the plants after watering them twice.

Can you help Mr. DeMello?

#### Input Specification

The first line will contain an integer, , the number of plants Mr. DeMello cares for.

The second line will contain an integer, , the length that the plants grow after being watered once.

The third line will contain space-separated integers, , representing the initial heights of the plants.

#### Output Specification

Output integers, the new heights of the plants after being watered twice in centimetres.

#### Sample Input

5
3
1 2 3 4 5

#### Sample Output

7 8 9 10 11