import java.util.Scanner;
public class Text {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Please input Month Day");
int M = s.nextInt();
int D = s.nextInt();
int S = (M * 2 + D) % 3;
if (S == 0) {
System.out.println("吉");
} else if (S == 1) {
System.out.println("大吉");
} else if (S == 2) {
System.out.println("普通");
}
}
}
import java.util.Scanner;
public class Text {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.println("Please input Month Day");
int M = s.nextInt();
int D = s.nextInt();
int S = (M * 2 + D) % 3;
if (S == 0) {
System.out.println("普通");
} else if (S == 1) {
System.out.println("吉");
} else if (S == 2) {
System.out.println("大吉");
}
}
}