input = gets.to_i for a in 1..10 b = input - a if b <= 10 puts "#{a} #{b}" break end end