function Main(input) { let res = 0; for (let i = 1; i <= Number(input); i++) { res += i; } console.log(res); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));