import sys input=lambda: sys.stdin.readline().rstrip() a,b,x0,n=map(int,input().split()) if x0%2==0: print(n//2,0) else: print(0,n//2)