#29894: Python代碼旳簡潔形式


cleverking2018@gmail.com (Clever King)


M, D = map(int, input().split())

print(['普通', '吉', '大吉'][(M * 2 + D) % 3])