m, d = map(int, input().split())
s = (m*2 + d) % 3
match s: case 0:
print("普通")
case 1: print("吉")
case 2: print("大吉")
m, d = map(int, input().split())
s = (m*2 + d) % 3
match s: case 0:
print("普通")
case 1: print("吉")
case 2: print("大吉")
zerojudge還不能用match-case啦~ 那是3.10版才有的東西