import java.util.Scanner; public class Main{ public static void main(String[] args) { Main main=new Main(); main.run(); } void run() { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for(int i=10;i>=1;i++) { int buf=N-i; if(buf>0) { System.out.println(buf+" "+i); return; } } } }