x=input().split()
M=int(x[0])
D=int(x[1])
S=(M*2+D)%3
if S==0:
print('普通')
elif S==1:
print('吉')
else:
print('大吉')