x = gets.to_i if x <= 5 p -1 else if x == 7 p -1 exit end y = x - 3 if y.to_s(2).count(?1) == 1 puts "5 #{x - 5}" else puts "3 #{y}" end end