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