#include <cstdio>
using namespace std;
 
int main() {
  int d;
  while (scanf("%d", &d) != EOF) {
    int sum = 0;
    for (int i = 0; i*d < 600; ++i) {
      sum += i*i;
    }
    printf("%d\n", sum*d*d*d);
  }
}