#include <iostream>
using namespace std;

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

int main() {
	int d;
	int x=600;
	while(cin>>d){
		int v=0;
		for(int i=0;i<x;i+=d)
			v+=f(i)*d;
		cout<<v<<endl;
	}
	return 0;
}