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