gets puts $<.map { |s| s.chop } .inject :+