lines = readline.map(&:chomp) puts lines.map(&:to_i).sum