#!/usr/bin/env ruby sum = 0.0 while line = STDIN.gets sum += line.strip.to_f end puts sum