Bingo!
Albert, Charles and Mary invented a new version of the classical game Bingo. In traditional Bingo the game is presided over by a non-player known as the caller. At the beginning of the game each player is given a card containing a unique combination of numbers from 0 to n arranged in columns and rows. The caller has a bag containing n + 1 balls, numbered from 0 to n. On each turn, the caller randomly selects a ball from the bag, announces the number of the drawn ball to the players, and sets the ball aside so that it cannot be selected again. Each player searches his card for the called number and marks it if he finds it. The first player who marks a complete pre-announced pattern on the card (for example, a full horizontal line) wins a prize.
In the Albert-Charles-Mary version, on each turn, the caller draws a first ball, returns it to the bag, draws a second ball, returns it to the bag, and then calls out the absolute difference between the two ball numbers. To generate even more excitement, before the game started a possibly empty subset of balls is removed from the bag, in such a way that at least two balls remain there. They would like to know if every number from 0 to n may still be called out with the new drawing method considering the balls that were left in the bag.
Input
Each test case is given using exactly two lines. The first line contains two integers n and b. The meaning of n (1 ≤ n ≤ 90) was described above, while b (2 ≤ b ≤ n + 1) represents the number of balls which remained in the bag. The second line contains b distinct integers b[i]
(0 ≤ b[i]
≤ n), indicating the balls which remained in the bag.
The last test case is followed by a line containing two zeros.
Output
For each test case output a single line containing a single uppercase Y if is possible to call out every number from 0 to n inclusive, or a single uppercase N otherwise.