Endless Road

아직 제출이 없습니다시간 제한10초메모리 제한1024 MB

문제

Suppose we have three chips on integer points on an infinite line (it is possible that two or more chips are at the same point). Every second one chip, taken equiprobably, moves to the next integer point (if the point was equal xx, it becomes x+1x + 1).

For each value of tt from 11 to nn, your task is to find the expected value of the maximal chip coordinate after tt seconds.

입력

The first line of input contains three integers aa, bb, cc (0abc1060 \le a \le b \le c \le 10^6): the initial coordinates of the chips.

The second line contains a single integer nn (1n21061 \le n \le 2 \cdot 10^6): the maximal time we are interested in.

출력

For each tt from 11 to nn, print a single line with a single number: the expected value of the maximal chip coordinate after tt seconds, expressed as an integer modulo prime number 998,244,353998\\,244\\,353. Formally, you can see that the expectation is a rational number pq\frac{p}{q}, where qq is coprime with 998,244,353998\\,244\\,353. You should output the number pq1pq^{-1} modulo 998,244,353998\\,244\\,353.