import std.stdio;
import std.string;
import std.conv;

int main()
{
	string str;
	while((str = readln()).length != 0)
	{
		int d = str.chomp.to!int;
		int value = 0,s = 0;

		while(value != 600-d)
		{
			value += d;
			int line = value*value;
			s += line * d;
		}
		writeln(s);
	}
	return 0;
}