#include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <math.h>
#include <map>
#include <vector>

using namespace std;



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