N = int(input()) flag = True for i in range(1,N): if flag == False: break for j in range(1,N): if i + j == N: print(i,j) flag = False break