• [D] Double and Ana

  • 时间限制: 1000 ms 内存限制: 65535 K
  • 问题描述
  • The summer is coming, Double and Ana start to play the water game.
    Do you know the water game? What? Don't you know it? Okay, let's me tell you what's the water game.
    First of all, We need a big cup and four small cups. The big cup can pour N liters of water. The small cups can pour 1 or 3 or 7 or 8 liters of water.
    Secondly, We need two players. For example, there are Ana and Double. Ana and Double pour the water in the big cup in turns. Each of them can pour water into the big cup by using the small cups in one trun. The small cup
    can't contain any water after pouring.
    Finally, The one who fill the big cup will win the game.

    Double almost won the water game with others. One day, he want to change his way to win.
    He always the first one to pour water in the big cup.
    If there is a girl (for example: Ana), he will try his best to lose the game.
    If there is a boy (for example: bobo), he will try his best to win the game.
    Double and the one who play with him is clever enough.

  • 输入
  • This problem has several cases.
    Each case contains two lines.
    The First line is an integer N, represent the big cup can pour N liters of water in. (1 <= N <= 10000)
    The second line is who play the game with Double.There are blanks and alphabets in the string.
    You can consider that if the first letter of the second line is uppercase, then she is a girl.
  • 输出
  • For each case, If Double win the game print "Yes!", or print "Oh, Noooooooooooooo!!!"
  • 样例输入
  • 8
    Ana
    8
    bobo
    
  • 样例输出
  • Oh, Noooooooooooooo!!!
    Yes!
    
  • 提示
  • 来源
  • Monkeyde17
  • 操作

显示春菜