import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 a,b,x,N=MI() if x%2==0: print(0,N//2) else: print(N//2,0) main()