#CCBCHBAHAI0000133. Nhân mọi phần tử với k (Multiply Every Element by k)

Nhân mọi phần tử với k (Multiply Every Element by k)

Multiply Every Element by k

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer array A=(a0,a1,…,an−1)A=(a_0,a_1,\ldots,a_{n-1}) and an integer kk, multiply every array element by kk.

For each index 0≤i<n0\le i<n,

bi=ai⋅k.b_i=a_i\cdot k.

Print the transformed array in its original index order.

Input

  • The first line contains nn.
  • The second line contains nn integers aia_i.
  • The third line contains the integer kk.

Output

Print one line with the nn values bi=ai⋅kb_i=a_i\cdot k, separated by single spaces.

Subtasks

Subtask 1 (100 points): 1≤n≤1051\le n\le10^5, ∣ai∣≤109|a_i|\le10^9, ∣k∣≤109|k|\le10^9. Every result fits in signed 64-bit long long.

Examples

Input

5
2 -3 0 4 10
-2

Output

-4 6 0 -8 -20

Explanation

With k=−2k=-2, the products are 2⋅(−2)=−42\cdot(-2)=-4, −3⋅(−2)=6-3\cdot(-2)=6, 00, 4⋅(−2)=−84\cdot(-2)=-8, and 10⋅(−2)=−2010\cdot(-2)=-20.