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