#include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <limits.h> #include <stdbool.h> long int sumOfGroup(int k) { // Return the sum of the elements of the k'th group. int i,s=0; for(i=k+4;i<4*k;i=i+2) { s=s+i; } return s; } int main() { int k; scanf("%i", &k); long int answer = sumOfGroup(k); printf("%ld\n", answer); return 0; }