import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a = 1; int b = 0; for( ; a <=10; a++) { b = n - a; if(b>=1 && b<=10)break; } System.out.println(a + " " + b); } }