#41269: python


suyueh (suyueh)


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