#include<iostream>
#include<math.h>

using namespace std;

double y(double x){
	double y;
	y=x*x;
	return y;
}

int main(){
	int i,d,s;
	while(cin>>d){
		s=0;
		for(i=0;i<600;i+=d){
			s+=d*y(i);
		}
		cout<<s<<endl;
	}
	return 0;
}