# from icecream import ic def main(): n=int(input()) if n%2==0: print(int(n/2-1),int(n/2+1)) else: print(int(n/2),int(n/2+1)) if __name__=="__main__": main()