import std.stdio, std.algorithm, std.string, std.conv, std.range;

void main(){
    string line;
    while(line = readln.chomp, line.length){
        auto d = line.to!int;
		int s;
		for(int x = 0; x < 600; x += d){
            s += x * x * d;
        }
		s.writeln;
        //reduce!((a, b) => a + b * b * d)(0, iota(d, 600, d)).writeln;
    }
}