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(num); if(a==0){ a=1; }else if(a>=10){ a = rand.nextInt(10); } int b = num -a; System.out.println(a+" "+b); } }