N = gets.to_i if N <= 10 puts [1, N - 1].join(' ') else puts [10, N - 10].join(' ') end