Hide

Problem I
Is it My Turn?

Languages da en is
/problems/isitmyturn/file/statement/en/img-0001.jpg

You just returned to your Uno game after a much-needed visit to the restroom. When you left, the player to your left had the turn, with play going clockwise. You can see that in your absence only Skip cards were played. Is it possible that it’s your turn now?

Each Skip card skips the next player. A popular house rule, which your group employs, is that any player may play multiple Skip cards at the same time. However, a player is not allowed to use Skip cards to skip themselves. To be precise, in a $p$-player game a player can play $s$ Skip cards for $1\leq s < p$, which skips the next $s$ players.

Input

One line with the number $p\in \{ 2,\ldots , 10\} $ of players (including yourself) and the number $c\in \{ 0,\ldots ,8\} $ of Skip cards played in your absence.

Output

Output “yes” if it must be your turn, “no” if it cannot be your turn, and “maybe” otherwise.

Sample Input 1 Sample Output 1
3 3
yes
Sample Input 2 Sample Output 2
2 1
no
Sample Input 3 Sample Output 3
4 2
maybe

Please log in to submit a solution to this problem

Log in