404500: GYM101521 D Archery
Description
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.
InputThe 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.
OutputIf Yuju advances according to the rules above, output Yuju. If Yerin advances, output Yerin. If shoot-off is required, output Shoot-off.
ExamplesInput3Output
9
10
X
X
8
X
YujuInput
2Output
4
1
M
6
YerinInput
4Output
X
10
8
7
9
X
10
6
Shoot-offNote
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.