N = gets.to_i random = rand(2..10) B = N - random puts "%d %d" % [random, B]