#24895: 最簡易答案


a0962014248gg@gmail.com (李福昌)


M, D = [int(_) for _ in input().split()]
a = ["普通""吉""大吉"]
print(a[(M*2+D)%3])