i=input() x=1,2,3 for r in x:print(*(eval(i)for c in x))