URI Online Judge | 3093

Guys' Truco 1.0

By Ygor Ribeiro, IFSULDEMINAS Brazil

Timelimit: 1

Guys' Truco is a very addictive game that is played by IFSULDEMINAS Computing students. We will not go into details about how the game works, nor will we talk about the rules, as these can vary greatly depending on the group of friends who are playing. Theusin of teens and gameplays, as he is known, is very superstitious, he believes that whenever he loses a round, it is the fault of the cards left in the pile after being dealt to all the participants.

After all the cards have been dealt, there are several left in the pile. Theusin then analyzes all the remaining cards and places them on the table.

Think of a deck of cards from 2 to 7 and {Q, J, K, A} as the cards that are part of the game. In this deck we are not concerned with suit or the amount of cards that may exist. Assume that this deck can have up to 1000 cards in the pile even after each participant has already taken theirs.

Example: After all the letters were distributed to the participants, the remaining ones were as follows, in that order: {2, 5, 8, J, A, A, 7, 3, Q, 4, K}.

Let's go to the boy's superstition: Theusin believes that whenever the cards {Q, J, K, A} are in the pile he will not lose points in the round.

Therefore, for the cards in the example above, in this round Theusin will not lose points, as the cards {Q, J, K, A} appeared, not necessarily in order, but they did, which is enough for the fortnite master to believe that does not lose points in the round.

Input

The first line of input contains an integer N (1 <= N <= 20), which indicates the number of test cases. The next N lines contain a String S (1 <= |S| <= 1000), with no spaces, showing all the cards left in the pile after the cards were dealt to the players.

Output

For each test case line, print "Aaah muleke", without quotes, if Theusin believes he will not lose points in the round, or "Ooo raca viu", without quotes, if he thinks he will lose, that is, his superstition will not occur.

 Input Samples Output Samples 3 AJ23456QK AJ23456Q QJJJJ754AK Aaah muleke Ooo raca viu Aaah muleke