#include<map>
#include<string>
#include<iostream>

using namespace std;

int main(){
  map<string,int> w;
  w["Kamen"]=1;
  w["Rock"]=1;
  w["Pierre"]=1;
  w["Stein"]=1;
  w["Ko"]=1;
  w["Koe"]=1;
  w["Sasso"]=1;
  w["Roccia"]=1;
  w["Guu"]=1;
  w["Kamien"]=1;
  w["Piedra"]=1;
  w["Nuzky"]=2;
  w["Scissors"]=2;
  w["Ciseaux"]=2;
  w["Schere"]=2;
  w["Ollo"]=2;
  w["Olloo"]=2;
  w["Forbice"]=2;
  w["Choki"]=2;
  w["Nozyce"]=2;
  w["Tijera"]=2;
  w["Papir"]=3;
  w["Paper"]=3;
  w["Feuille"]=3;
  w["Papier"]=3;
  w["Carta"]=3;
  w["Rete"]=3;
  w["Paa"]=3;
  w["Papier"]=3;
  w["Papel"]=3;
  int game=1;
  while(1){
    string tmp,pl1,pl2;
    cin>>tmp>>pl1;
    cin>>tmp>>pl2;
    string a,b;
    int point1=0,point2=0;
    for (int i=0;i<2;i++){
      cin>>a>>b;
      switch((w[a]-w[b]+3)%3){
      case 1:
	point2++;
	break;
      case 2:
	point1++;
	break;
      default:
      break;
      }
    }
    if (!(point1==2 || point2==2)){
      cin>>a>>b;
      switch((w[a]-w[b]+3)%3){
      case 1:
	point2++;
	break;
      case 2:
	point1++;
	break;
      default:
      break;
      }
    }
    cout<<"Game #"<<game<<':'<<endl;
    cout<<pl1<<": "<<point1<<" point";
    if (point1!=1) cout<<"s";
    cout<<endl;
    cout<<pl2<<": "<<point2<<" point";
    if (point2!=1) cout<<"s";
    cout<<endl;
    if (point1==point2) cout<<"TIED GAME"<<endl;
    if (point1<point2) cout<<"WINNER: "<<pl2<<endl;
    if (point1>point2) cout<<"WINNER: "<<pl1<<endl;
    string endgame;
    cout<<endl;
    game++;
    cin>>endgame;
    if (endgame==".")
      return 0;
  }
}
   
