and don't always get along. When they're feeling particularly confrontational, they usually quietly settle the matter with a friendly game of Admin War.
In this two-person game, the players are each dealt
The player with more points when the game ends is the winner. If both players have the same amount of points, the game results in a tie.
The normal cards in a deck of cards are, from lowest to highest value: sketchy special deck where
You have taken a peek at each of their decks while they weren't paying attention and would like to know the outcome of the game.
Input Specification
The first line of input contains
The second line contains
The third line contains
Card values are guaranteed to be between
Output Specification
On the first line, output
and 's final scores respectively, separated by a space.On the second line, output the winner of the game: Xyene
, FatalEagle
, or Tie
if there is a tie.
Sample Input 1
3
7 13 4
2 14 11
Sample Output 1
1 2
FatalEagle
Explanation for Sample Output 1
Sample Input 2
5
14 14 14 14 14
2 2 2 2 2
Sample Output 2
5 0
Xyene
Explanation for Sample Output 2
sweeped won all rounds by a wide margin, winning the game with a final score of
Sample Input 3
6
5 12 6 14 7 9
10 12 6 13 8 8
Sample Output 3
2 2
Tie
Comments