#include <stdio.h> int main() { int a, b, c, d; scanf("%d",&a); for(b=1,d=0;b<=a;b++) { for(c=1;c<=b;c++) { d+=c; } } printf("%d",d); return 0; }