import java.util.Scanner; public class no687 { public static void main(String[] args){ Scanner s = new Scanner(System.in); int num = s.nextInt(); int a[] = {1,2,3,4,5,6,7,8,9,10}; int b[] = {1,2,3,4,5,6,7,8,9,10}; for(int i=0;i<=9;i++){ for(int j=0;j<=9;j++){ if(num==a[i]+b[j]){ System.out.println(a[i]+" "+b[j]); System.exit(0); } } } } }