#K86707. District Resource Generation

    ID: 36924 Type: Default 1000ms 256MiB

District Resource Generation

District Resource Generation

You are given the number of districts in a city and the amount of resources each district produces per hour. Given a time duration in hours, your task is to compute the total resources generated by each district after that period.

The total resources for a district is calculated as follows:

\( total\_resources = resources\_per\_hour \times h \)

For example, if a district produces 10 resources per hour and the duration is 5 hours, then the total resources produced will be \(10 \times 5 = 50\).

inputFormat

The input is read from stdin and consists of three lines:

  • The first line contains an integer \(n\), representing the number of districts.
  • The second line contains \(n\) space-separated integers, where the \(i\)-th integer represents the amount of resources produced per hour by the \(i\)-th district.
  • The third line contains an integer \(h\), representing the number of hours.

outputFormat

Output a single line to stdout containing \(n\) space-separated integers. Each integer should represent the total resources generated by the corresponding district after \(h\) hours.

## sample
4
10 20 30 40
5
50 100 150 200