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