def g(s):return lambda a:a and g("("+s+" "+a(0)+")")or s f=g("f") while 1:print input()(0)