#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;

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