function f(d) {
	return d * d;
}

var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var lines = input.split('\n');

var d;
while (d = +lines.shift()) {
	var sum = 0;
	var n = 600 / d;
	for (var i = 1; i < n; i++) {
		sum += d * f(i * d);
	}
	console.log(sum);
}