package oj.test;
import java.util.ArrayList;
import java.util.Scanner;
public class Demo2 {
/**
* @等差数列
*/
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int n = sc.nextInt();
System.out.println(get_sun(n));
}
private static int get_sun(int n) {
int sum =0;
int[] arr =new int[1000];
for(int i=0;i<n;i++){
arr[i]=2+3*i;
sum+=arr[i];
}
return sum;
}
}