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