Roshambo is a simple game known all around the world. In German it is called "Schnick, Schnack, Schnuck", in Japanese "Janken", in Spanish "Cachipún", in Polish "Papier, kamień, nożyce", and in Czech "Kámen, nůžky, papír".
Whatever the game is called, its rules are the same. Two players simultaneously form their hand into one of three shapes (symbols): Rock (closed fist), Paper (open hand), or Scissors (two extended fingers). If both show the same symbol, the round is a tie and no points are awarded. Otherwise one symbol wins: Rock blunts Scissors, Scissors cut Paper, and Paper covers Rock.
Your task is to write a program that scores a single game between two players.
Because the players come from different countries, the system must accept input in several languages. The table below lists the names of the three symbols in each language. Note that in some languages a symbol may have two different words.
| Language | Code | Rock | Scissors | Paper |
|---|---|---|---|---|
| Czech | cs | Kamen | Nuzky | Papir |
| English | en | Rock | Scissors | Paper |
| French | fr | Pierre | Ciseaux | Feuille |
| German | de | Stein | Schere | Papier |
| Hungarian | hu | Ko | Koe | Ollo | Olloo | Papir |
| Italian | it | Sasso | Roccia | Forbice | Carta | Rete |
| Japanese | jp | Guu | Choki | Paa |
| Polish | pl | Kamien | Nozyce | Papier |
| Spanish | es | Piedra | Tijera | Papel |
The input contains several games. Each game starts with two lines describing the players. Each of these two lines contains two lowercase letters giving the language code used by the player (see the table above), one space, and the player's name. A name consists of at most twenty upper- or lower-case letters.
After the player descriptions come at most 100 lines, each describing one round. A round is given as two words separated by a single space, naming the symbol shown by the first and the second player respectively. Every symbol is written in the mother tongue of the corresponding player. All allowed words appear in the table above; the first letter is always uppercase and the remaining letters lowercase.
The last round is followed by a line containing a single dash ('-'), after which the next game begins. The only exception is the last game in the input, which is terminated by a dot ('.') instead of a dash.
For each game, print four lines. The first line is the string "Game #G:", where G is the game number, starting at one.
The second line contains the first player's name, a colon (':'), one space, and the number of rounds that player won. The number is followed by one space and the word "points". Use the singular form "point" if (and only if) the number equals one.
The third line has the same format and shows the second player's name and points.
The fourth line shows the game result. It contains the word "WINNER" followed by a colon, a space, and the name of the player with more points. If both players have the same number of points, the fourth line contains "TIED GAME" instead.
Separate two consecutive games with a single blank line.
Thanks to Wikipedia, the free encyclopedia, for the background information and the symbol names in various languages. If your own language is missing, it may be because Wikipedia has no article about Roshambo in that language.