N = gets.to_i if N <= 10 puts "1 #{N-1}" else puts "#{N-10} 10" end