Kurt's favorite prime number is . Over the course of
seconds where he knows how many events Gigatron processed each second,
he wants to know the total number of events Gigatron processed, modulo
.
Constraints
Input Specification
The first line of input contains a single positive integer .
The second line contains nonnegative integers,
, representing the number of events Gigatron processed during second
.
Output Specification
Let be the total number of events Gigatron processed over the
seconds. Compute the remainder when
is divided by
998244353
.
Sample Input
3
1000000000 1000000000 994733059
Sample Output
0
Sample Explanation
We can see that Gigatron processed events. Note that
, so the remainder when
is divided by
is zero.
Comments