import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//输入一个正整数
int n = scan.nextInt();
//累积偶数的个数
int osSum = 0;
//累积奇数的个数
int jsSum = 0;
for(int i = 1; i <= n; i++) {
if(i % 2 == 1) {
jsSum++;
} else {
osSum++;
}
}
System.out.println(jsSum + " " + osSum);
}
}