n=int(input()) print(n-1,1) if n <11 else print(n //2 ,n-(n//2))