#include<bits/stdc++.h>
using namespace std;

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

double rectangle_method(double a, double b, int n) {
  double acc = 0, d = (b - a) / n;
  for (int i = 0; i < n; i++) {
    acc += func(a + i * d) * d;
  }
  return acc;
}

int main(){
    int d;
    while(scanf("%d",&d) != EOF){
        cout << (int)rectangle_method(0, 600, 600/d) << endl;
    }

    return 0;
}
