404500: GYM101521 D Archery

Memory Limit:64 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

D. Archerytime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard output

The Idol Star Athletic Championship 2016 archery elimination round has just finished! Help the judge by writing a program to read the scores of the two contestants, Yuju and Yerin, and determine who is going to advance.

Yuju and Yerin, Idol Star Athletic Championship 2016

Instead of 72, assume that the round is determined by N arrows. For an arrow, the score written on the scorecard can be one of the following:

  • M for Miss (0 points)
  • 1 to 9 (1 to 9 points respectively)
  • 10 for Outer 10 (10 points)
  • X for Inner 10 (10 points)

At the end of N arrows, the points are summed up to compute the total. The contestant with the higher total would advance. In case of ties, the contestant with more 10s (X included) would advance. If still tied, the contestant with more Xs would advance. If still tied, a shoot-off (extra arrows) would be required.

Input

The first line contains an integer N, the number of arrows shot by each contestant. (1 ≤ N ≤ 100)

The next N lines contain the scores of the arrows shot by Yuju.

The next N lines contain the scores of the arrows shot by Yerin.

Output

If Yuju advances according to the rules above, output Yuju. If Yerin advances, output Yerin. If shoot-off is required, output Shoot-off.

ExamplesInput
3
9
10
X
X
8
X
Output
Yuju
Input
2
4
1
M
6
Output
Yerin
Input
4
X
10
8
7
9
X
10
6
Output
Shoot-off
Note

In the first sample, Yuju scored 29 points while Yerin scored 28 points.

In the second sample, Yuju scored 5 points while Yerin scored 6 points.

In the third sample, both contestants scored 35 points, have two 10s, and one X. Therefore, shoot-off is required.

加入题单

算法标签: