import java.util.*; class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); System.out.println(n/2+" "+(n-n/2)); } }