3627. Calculation

单点时限: 3.0 sec

内存限制: 512 MB

You are given an array with nodes. The array nodes are numbered from to (represented by ).

Then you define a new array . The -th () node of is :

Please calculate array .

输入格式

The first line contains three integers , , ().

The next line contains integers of array . ()

输出格式

Output integers of array in one line separated with space.

样例

Input
5 1 1
1 2 3 4 5
Output
129 3711 38153 163078 120839
Input
3 1 2
1 1 1
Output
13 43 343

1 人解决,7 人已尝试。

1 份提交通过,共有 26 份提交。

9.9 EMB 奖励。

创建: 1 年,4 月前.

修改: 1 年,4 月前.

最后提交: 1 年,2 月前.

来源: 2018 Shanghai Metropolitan Contest

题目标签
fft