while True: try: a = int(input()) if a % 2 != 0: print(0, 0) else: print(a // 4 + (a % 4 == 2), a // 2) except: break