function Main(input) { var data = input.split("\n") var N = parseInt(data[0]) var sum = (1 + N) * N * 0.5 console.log(sum) } Main(require("fs").readFileSync("/dev/stdin", "utf8"));