There are children in Luca’s kindergarten, numbered from to . Child (for each ) has a toy brick with height .
Today, Luca asked the children to build a tower of height . To do so, some of the children may stack their bricks on top of one another so that the total height of the selected bricks is exactly .
However, the children prefer to keep their bricks for themselves. For each child, determine whether their brick is indispensable. That is, whether it is impossible to build a tower of height S without using that child’s brick.
Input data
The first line of the input file contains two integers: and , respectively the number of children and the height of the tower to build.
The second line of the input file contains integers: , the heights of the bricks.
Output data
The output file must contain lines, each consisting of a single string: the -th line must be YES if the brick of child is indispensable, and NO otherwise.
Constraints and clarifications
- .
- .
- for each .
- There is at least one way to build a tower of height using some of the bricks.
| # | Score | Constraints |
|---|---|---|
| 1 | 0 | Examples. |
| 2 | 22 | . |
| 3 | 35 | . |
| 4 | 43 | No additional constraints. |
Example 1
stdin
3 7
3 4 4
stdout
YES
NO
NO
Explanation
In the first sample case, the only ways to build a tower of height is to use the brick of child combined with one of the other children’s bricks. Therefore, only the brick of child is indispensable.
Example 2
stdin
5 10
5 1 4 2 2
stdout
YES
YES
NO
NO
NO
Explanation
In the second sample case, it can be proven that only the brick of child and child is indispensable.