#include #include #include #include #include #include #include long long int sumOfGroup(long long int k) { // Return the sum of the elements of the k'th group. long long int a = ((k-1)*k)/2; long long int b = ((k+1)*k)/2; return (b*b-a*a); } int main() { long long int k; scanf("%lld", &k); long long int answer = sumOfGroup(k); printf("%lld\n", answer); return 0; }