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