from pytokr import items
print("Jutge enters.")
ops = set(['add', 'mul', 'cnt'])
ls = list()
for thing in items():
    if thing in ops:
        print(ls, thing, choose_op(ls, thing))
        ls = list()
    else:
        ls.append(int(thing))
print("Jutge exits.")