#K9526. Multiply List Elements

    ID: 38824 Type: Default 1000ms 256MiB

Multiply List Elements

Multiply List Elements

You are given a list of non-negative integers and a non-negative integer factor. Your task is to multiply each element in the list by the given factor.

The solution must read input from standard input (STDIN) and print the result to standard output (STDOUT). The result should be a list of integers separated by a single space.

Note: All input numbers are non-negative and are provided in the following format.

inputFormat

The first line contains an integer n that represents the number of elements in the list. The second line contains n space-separated non-negative integers. The third line contains a non-negative integer representing the factor.

outputFormat

Output a single line containing the resulting list after multiplication, with each integer separated by a space.

## sample
5
1 2 3 4 5
3
3 6 9 12 15