# coding: utf-8 # Your code here! a,b,x0,N=map(int,input().split()) print(*[0,N//2] if x0%2==0 else [N//2,0])