Composition Calculus by Defenestrator

F=lambda a,b:a(b)if a<''else'('+a+' '+b+')'if a!='.'else lambda c:lambda d:F(b,F(c,d))
while 1:print reduce(F,raw_input().split())

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top