N = gets.to_i
puts (1 .. 10).find{|a| N - a <= 10 }.then{|a| "#{a} #{N-a}"}