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