function Main(input) { var data = parseInt(input.split("\n")); let sum = 0; for (let i = 1; i <= data; i++) { sum = sum + i; } console.log(parseInt(sum)); } Main(require("fs").readFileSync("/dev/stdin", "utf8"))