const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
let sum = 0;
let counterClose = 0;
rl.on("close", () => {
console.log(sum);
});
rl.on("line", (input) => {
const num = parseInt(input);
sum += num;
counterClose++;
if (counterClose >= 2) {
rl.close();
}
});