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