h=100 while""do x=io.read()print(("%d %d %d %d"):format(x/h/h%h,x%h,x/h^3,x/h%h))end