# -*- coding: utf-8 -*- n = int(input()) m = int(n/2) n1 = m + 1 n2 = n - n1 if n == 2: n1 = 1 n2 = 1 print(n1,n2)