import java.util.Scanner; import java.util.Random; public class no687 { public static void main(String[] args){ Scanner s = new Scanner(System.in); int num = s.nextInt(); Random rand = new Random(); int a = rand.nextInt(10); if(a==0){ a=1; } int b = num -a; System.out.println(a+" "+b); } }