Yuta has a sequence of n integers a_1,…,a_n and a number k. For any non-empty subsequence S of this sequence, the value of S is defined as the sum of the largest min(∣S∣,k) numbers in S. The value of the array a is equal to the sum of the values of all its non-empty subsequences.
Now Yuta shows the n integers, and he wants to know the value of the array for each k in \[1,n].
The first line of the input contains an integer n (1≤n≤105), the length of the sequence Yuta has. The second line contains n integers a_1,…,a_n (0≤a_i≤109), the sequence itself.
Print a line that contains exactly n integers. The i-th number mjust be the value of the array when k=i. The answers may be very large, so you must print them modulo 998,244,353.