import java.util.Scanner;
public class Test {
public static void main(String[] args) {
// n个圆最多把平面分成几部分?输入圆的数量N,问最多把平面分成几块。
// 比如一个圆以把一个平面切割成2块。 不考虑负数,0或者其他特殊情况。
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
System.out.println(2+x*(x-1));
}
}