function Main(input) { const num = Num(input.split("\n")) var res = 0; for (i = 1; i <= num; i++) { res += i } console.log(res); } // Don't edit this line! Main(require("fs").readFileSync("/dev/stdin", "utf8"));