puts (X = 1..(Y=gets.to_i)).map {|a| X.map{|b| [a,b]}}.flatten(1).filter{|x| x[0] + x[1] == Y}.filter{|x| x[0] <= 10 && x[1] <= 10}[0] * " "