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