He is a positive man in every way, except that he goes to the bar every evening...
One of your friends is a bartender in the city's most famous (and only) bar. There are 2⋅n+1 houses in the city, located along one long road and numbered from 0 to 2⋅n. The bar is located in the house numbered n.
The interesting fact is that all drunkards in the city have the same habit. Of course, they leave the bar having a condition not allowing them to go along a way home, so they start to walk without a goal. Namely, every drunkard has an array a in mind, which has length n. In the i-th second after leaving the bar, the drunkard wants to change his position in the road by a_i (∣a_i∣=1). If the drunkard was in front of the house j, he would be in front of the house j+a_i after this change.
However, they are so drunk that each second with probability 100p they are not capable of moving and stay in their current position.
If a drunkard arrives in front of his house, his family members see him and take him home. Possibly, if he lives in the n-th house itself, his family members will take him immediately. However, after n seconds, if not taken, a drunkard becomes disappointed and sleeps in the street.
Another drunkard came to the bar. The bartender does not know where he lives, so he just assumes for every house the probability is 2⋅n+11 that the drunkard lives there. Calculate the probability that his family members will take him home modulo 998,244,353.
The first line contains two integers n and p (1≤n≤5000, 0≤p≤100), which are described in the statement.
The second line contains n integers a_1,…,a_n (∣a_i∣=1) --- the drunkard's intentions in the i-th second.
Output one integer --- the answer modulo 998,244,353.
Formally, let M=998,244,353. It can be shown that the answer can be expressed as an irreducible fraction qp, where p and q are integers and it is guaranteed that q is not divisible by M. Output the integer equal to p⋅q−1modM. In other words, output such an integer x that 0≤x<M and x⋅q=p(modM).