ECOO '21 Practice P1 - Tootsie Rolls!

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 3.0s
Memory limit: 256M

Author:
Problem type

Note this problem was originally intended for the cancelled 2020 Girls Invitational Competition.

Emili loves Tootsie Rolls. However, she absolutely despises Rockets. If she is ever in possesion of strictly more than 7 Rockets, she will become very angry! She will also become angry if she is in possession of strictly less than 3 Tootsie Rolls!

You know that Emili currently has N pieces of the same type of candy (either Tootsie Rolls or Rockets), but you do not know if they are Tootsie Rolls or Rockets. You only know that she is not in possession of more than 7 Rockets or less than 3 Tootsie Rolls.

Given N, can you determine which type of candy she currently has, or that you can't with the given information?

Input Specification

The first and only line will contain the integer N. N is between 1 and 10, inclusive.

Output Specification

If you are sure she has Tootsie Rolls, output Tootsie Roll!.
If you are sure she has Rockets, output Rocket!.
Otherwise, output NO.

Sample Input

2

Sample Output

Rocket!

Comments

There are no comments at the moment.