#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int main(){
  int d, ans;
  cin >> d;
  for(int i = 0; i < 600; i += d){
    ans += d * i * i;
  }
  cout << ans << endl;
  return 0;
}