a,b,x,N = map(int,input().split()) if N%2 == 0: print(0,N//2) else: print(N//2,0)