2018-12-08
.
n = gets.chomp.split("") m = [] n.each do |c| if c == "1" m << "9" else m << "1" end end p m.join.to_i
puts gets.tr('19','91')