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