Mismatch

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

문제

You are given an array a_1,a_2,,a_na\_1, a\_2, \ldots, a\_n of nn nonnegative integers. For each kk from 11 to nn, find the number of subsequences of size kk (a_i_1,a_i_2,,a_i_ka\_{i\_1}, a\_{i\_2}, \ldots, a\_{i\_k}; 1i_1<<i_kn1 \le i\_1 < \ldots < i\_k \le n) such that their bitwise AND is equal to zero (a_i_1a_i_2a_i_k=0a\_{i\_1} \wedge a\_{i\_2} \wedge \ldots \wedge a\_{i\_k} = 0). Since the answers can be very large, compute them modulo 998,244,353998\\,244\\,353.

Two subsequences are considered distinct if there is an index ii such that the element a_ia\_i is included in one of the subsequences but not the other.

입력

The first line contains an integer nn (1n2191 \le n \le 2^{19}). The second line contains nn integers a_1,a_2,,a_na\_1, a\_2, \ldots, a\_n (0a_i<2190 \le a\_i < 2^{19}).

출력

Print nn space-separated integers b_1,b_2,,b_nb\_1, b\_2, \ldots, b\_n, where b_ib\_i is the answer for k=ik = i modulo 998,244,353998\\,244\\,353.