a,b,x,n = map(int,input().split()) ans = n//2 print(ans,ans)