N = int(input()) q, r = divmod(N, 2) print(q, q + r)