#include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<cstdio>
#include<climits>
#include<cmath>
#include<cstring>
#include<string>
#include<complex>

#define EPS (1e-10)
using namespace std;
#define PI (3.1415926535)

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

int main(){
	int d;
	int s;

	while(cin >> d){
		s = 0;
		for(int i = 0; i < 600/d; i++){
			s+=d*f(d*i);
		}
		cout << s << endl;
	}

	return 0;
}