问题3777--GG and MM

3777: GG and MM

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

GG and MM have a quarrel bicker with each other, but either of them want to opologize. Qi Ge thougt of a good idea to solve this tough problem. He wants them to play scissors-paper-rock, which the loser must apologize to the other. However, Qi Ge is tired of being a judge, so he requests you to be the judge to find who loses more.

输入

The input starts with a integer shows the number of test case. Each test case consists a integer n (n<=100), meaning the number of times they played. Then follows two lines, namely the way GG and MM played in n games. S represents scissors, and P means paper. Finally, R stands for rock.

输出

Print the person who are going to apologize to the other. If their is a tie, print "Once again!".

样例输入 Copy

2
4
SSRP
RSPP
6
SSSPPP
PPPRSS

样例输出 Copy

Case 1: GG
Case 2: MM

来源/分类

ZBY