#54171: python解


1120328@kmhjh.kh.edu.tw (1120328 s)


a,b=map(int,input().split())
s=(a*2+b)%3
if s==0:
    print("普通")
elif s==1:
    print("吉")
else:
    print("大吉")