def main(): N = int(input()) print(N // 2, N - N // 2) if __name__ == "__main__": main()