import java.io.*;
class gg083 {
public static void main(String[] args) {
int [][] SYOHAI_HYO = {
{3, 1, 2, 2},
{2, 3, 1, 2},
{1, 2, 3, 3},
{1, 1, 1, 3}
};
String [] SYOHAI = {
"太郎の勝ち",
"花子の勝ち",
"あいこ",
"??"
};
int xtaro = 0, xhana=0;
boolean xtaroOKsumi = false;
boolean xhanaOKsumi = false;
try {
BufferedReader xin = new BufferedReader(new InputStreamReader(System.in));
for(int i=0;i<3;i++){ // 本来は10回だが,サンプルとして3回としてある。
System.out.println("太郎は,1:グー,2:チョキ,3:パー,4:OK");
String xmoji = xin.readLine();
xtaro= Integer.parseInt(xmoji);
System.out.println("花子は,1:グー,2:チョキ,3:パー,4:OK");
xmoji = xin.readLine();
xhana= Integer.parseInt(xmoji);
if((xtaroOKsumi) && (xtaro==4)||(xhanaOKsumi && xhana==4)){
System.out.println(SYOHAI[3]);
}else{
System.out.println(SYOHAI[SYOHAI_HYO[xtaro-1] [xhana-1] -1]);
// -1 は,添字が0から始まるため
}
if(!xtaroOKsumi && xtaro==4){
xtaroOKsumi = true;
}
if(!xhanaOKsumi && xhana==4){
xhanaOKsumi = true;
}
}
}catch (Exception ie) {
System.out.println("エラーです");
}
}
}