# Storage Problems

The gangsters did a very successful robbery of the city's most famous auction house. Now they are safely at their hideout, where they store the stolen items. Luckily, you managed to place a listening device into their hideout. You also have a personal file on each ganger, which contains a recording of their voice. You will listen carefully to what happens next with hope it will help you with the investigation of the robbery.

Each gangster stole exactly one item, the $i$-th gangster stole the $i$-th item. Now each gangster is trying to put his item into the common storage, which can hold a total weight of $k$. The storage is a small room and the gangsters store their items one by one.

When a gangster tries to put an item into the storage but it does not fit, that is the total weight of the items in the storage would exceed $k$, he gets angry and throws all the items in the storage out. While doing this, he tells the others that "$j$ items are going to trash!", where $j$ is the number of items in the storage at the point he tried to store his item. At this point a fight ensues and no more storing will happen.

As you have a listening device in the gangsters' storage, you will hear how much items the gangster throws out. Also, using your personal files, you can tell apart each of the gangster's voices.

Therefore, it would help your investigation greatly if you could know in advance, for all possible values of $j$ and $i$, how many different subsets of items could be in the storage at the moment when the $i$-th gangster throws all the j items out. As the number of subsets can be large, print it modulo $167772161$.

## Input

Consists of two lines. The first line contains two integers $n$ and $k(2≤n≤400,1≤k≤400)$, the number of gangsters and the maximum weight that the storage can hold. The second line contains $n$ integers $w_{1},w_{2},...,w_{n}$, such that $(1≤w_{i}≤k)$ for each $1≤i≤n$. Here $w_{i}$ is the weight of item that the $i$-th gangster stole.

## Output

Print $n$ lines, each line containing exactly $n−1$ integers. The $j$-th value on the $i$-th line contains the number of subsets of items containing exactly $j$ items, such that they fit into the storage but the $i$-th gangter's item can not be added. Each number is modulo $167772161$.