import strutils let n: int = stdin.readLine.parseInt var sum: int = 0 for i in 1..n: sum += i echo sum