#include int main(void){ int N,a1,a2; scanf("%d",&N); a1 = N - 10; if(a1 > 0){ a2 = 10; }else{ a1 = N -1; a2 = 1; } printf("%d %d",a1,a2); }