3627. Calculation

单测试点时限: 3.0 秒

内存限制: 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 奖励。

创建: 4 月,2 周前.

修改: 4 月,2 周前.

最后提交: 2 月,2 周前.

来源: 2018 Shanghai Metropolitan Contest

标签
fft