public class testaaaaaa {
public static void main(String[] args) {
java.util.Scanner bbb = new java.util.Scanner(System.in);
int a;
int b;
while (bbb.hasNext()) {
a = bbb.nextInt();
b = bbb.nextInt();
int c =(a*2+b)%3;
if (c ==0){
System.out.println("普通");
}
else if(c==1){
System.out.println("吉");
}
else{
System.out.println("大吉");
}
}
}
}