#pragma TASS input 
int N_BOUND;
#pragma TASS input {n>=0 && n<=N_BOUND}
int n;
#pragma TASS output 
int t;

void main() {
  int i = 1;
  int j;
  int s = 0;
  l1:
  while (i <= n) {
    j = 1;
    l2:
    while (j <= i*i) {
      s = s + i*j;
      j = j + 1;
    }
    i = i + 1;
  }
  t = s;
}
