import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        long max=0;
        for(long i=0; i<=N; i++){
            long t=N*i-i*i+N;
            max=Math.max(max,t);
        }
        System.out.println(max);
    }
}