import sys sys.setrecursionlimit(10 ** 8) input = sys.stdin.readline def main(): A, B, X, N = [int(x) for x in input().split()] if N & 1: print(0, N // 2) else: print(N // 2, 0) if __name__ == '__main__': main()