#include<iostream>
using namespace std;

int main()
{
	int d;
	while(cin>>d)
	{
		//d=?¨?????????????e=????????¢????????°
		int e = 600 / d;
		int x = 0;
		for (int i = 0; i < e; i++) {
			x += d*i*d*d*i;
		}
		cout << x<<endl;
	}
	return 0;
}