#include <cstdio>

int func(int x)
{
  return x * x;
}

int main ()
{
  int i, dist, tmp;
  int area = 0;

  while (scanf("%d", &dist) != EOF) {
    for (i = 0; i < 600/dist; i++) {
      tmp = dist * (i + 1);
      area += dist * func(tmp);
    }
    printf("%d\n", area);
    area = 0;
  }

  return 0;
}