#27597: 不用感謝我


yp11051144@yphs.tp.edu.tw (81134張陳書沛)


import sys

import codecs

sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())

# end

def foo(var):

    return {0:'普通',1:'吉',2:'大吉'}.get(var,'error')

 

str = input()

l = str.split()

S=(int(l[0])*2+int(l[1]))%3

print(foo(S))