a, b, x0, N = map(int, input().split()) print(N//2, N//2)