_, _, _, N = map(int, input().split()) print(N//2, 0)