#include <stdio.h> int main(void) { int n, i, j, sum1 = 0; int sum = 0; scanf("%d", &n); for(i = 1;i <= n; i++) { for(j = 1; j <= i; j++) sum = sum + j; sum1 = sum1 + sum; sum = 0; } printf("%d", sum1); return 0; }