s=input();e=1,2,3 for r in e:print(*[eval(s)for c in e])