import java.util.Scanner;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
while (in.hasNextLong()) { // 注意 while 处理多个 case
long a = in.nextLong();
System.out.println(a*(a+1)/2);
}
}
} import java.util.Scanner;
import java.math.BigInteger;
import java.util.stream.LongStream;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
/*for循环处理超时
int n=in.nextInt();
BigInteger a=new BigInteger("0");
for(int i=1;i<=n;i++){
a=a.add(BigInteger.valueOf(i));
}
System.out.println(a);
*/
//使用stream流进行优化
int n=in.nextInt();
System.out.println(LongStream.rangeClosed(1,n).sum());
}
} import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()){
long num = scanner.nextLong();
long sum = ((num + 1) * num )/ 2;
//没想到提交的时候数字很大啊,遂用了等差数列求和的通项公式
/*for(int i = 0;i <= num;i++){
sum += i;
}*/
System.out.println(sum);
}
}
}