import random N = int(raw_input()) A=random.randint(1,2) print A, N-A