a, b, x0, N = map(int, input().split()) x0_mod2 = x0 % 2 if x0_mod2 == 0: T = 0 A = N // 2 else: T = N // 2 A = 0 print(T, A)