z=input() q=1,2,3 for r in q:print(*[eval(z)for c in q])