import java.util.Scanner;
public class JAVA{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int M,D,S;
String s="";
while(sc.hasNext()){
M = sc.nextInt();
D = sc.nextInt();
S = (M*2+D)%3;
switch(S){
case 0:s="普通";
break;
case 1:s="吉";
break;
case 2:s="大吉";
break;
}
System.out.println(s);
}
}
}