def main(): import sys input = sys.stdin.readline a, b, x0, N = map(int, input().split()) if x0 & 1: print(0, N//2) else: print(N//2, 0) if __name__ == '__main__': main()