#include <stdio.h> int main(){ int i,num; int a,b; scanf("%d", &num); if(num > 10){ a = 10; b = num - a; } else if (num == 10) { a = 4; b = 6; } else { a = 1; b = num - 1; } printf("%d %d\n", a, b); return 0; }