#include <iostream>
#include <queue>
#include <vector>
#include <math.h>
#include <algorithm>
#include <iomanip>
#include <string>
#include <stack>
using namespace std;

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