#include<iostream>
#include<iomanip>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;

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

	return 0;
}