a, b, x, n = map(int, input().split()) print(n//2, n//2)