#39759: Python


a4590275tammy@gmail.com (yuchan)


M, D=map(int,input().split())
# M=int(input('請輸入月份'))
# D=int(input('請輸入日期'))
S=(M*2+D)%3
if S == 2:
    print("大吉")
elif S == 1:
    print("吉")
elif S==0:
    print("普通")