#include <iostream>
#include <cmath>
using namespace std;

int main(){
	int d;
	while(cin >> d){
		while(600 % d){
			cout << "wrong value\n";
			cin >> d;
		}
		int s = 0, h = d, num = 600 / d;
		for(int i = 0;i < num - 1;i++){
			s += (d * pow((600 - h), 2));
			h += d;
		}
		cout << s << "\n";
	}
    return 0;
}