Problem D
Dice Game

Gunnar and Emma play a lot of board games at home, so they
own many dice that are not normal
There has been a big storm in Stockholm, so Gunnar and Emma have been stuck at home without electricity for a couple of hours. They have finished playing all the games they have, so they came up with a new one. Each player has 2 dice which he or she rolls. The player with a bigger sum wins. If both sums are the same, the game ends in a tie.
Task
Given the description of Gunnar’s and Emma’s dice, which player has higher chances of winning?
All of their dice have the following property: each die
contains numbers
Input
The first line contains four integers
The second line contains the description of Emma’s dice in the same format.
Output
Output the name of the player that has higher probability of winning. Output “Tie” if both players have same probability of winning.
Sample Input 1 | Sample Output 1 |
---|---|
1 4 1 4 1 6 1 6 |
Emma |
Sample Input 2 | Sample Output 2 |
---|---|
1 8 1 8 1 10 2 5 |
Tie |
Sample Input 3 | Sample Output 3 |
---|---|
2 5 2 7 1 5 2 5 |
Gunnar |