#include <iostream>
using namespace std;

int main() {
	int d;
while(cin>>d){
	int a=600/d;
	int sum  = 0;
	for (int k=1;k<=a;k++){
		sum=sum+d*(((k-1)*d)*((k-1)*d));
	
}
cout<<sum<<endl;
}
	return 0;
}