say STDIN.readline.words.map{.to_i}.sum