#include<iostream>
using namespace std;

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

int main()
{
	while(1){
		double s=0,d;
		cin>>d;
		for(double i=d;i<600;i+=d){
			s+=func(d,i);
		}
		cout<<s;
	}
}