#include<iostream>
using namespace std;

int main(){
	int d;
	long sum;
	int n;

	while(cin >> d){
		sum = 0;
		n = 600 / d;

		for(int i=1;i<n;i++){
			sum += d * d*d*i*i;
		}
		cout << sum << endl;
	}
	return 0;
}