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

void main() {
  auto d = readln.chomp.to!int;

  int ans = 0;
  for (int i = d; i < 600; i += d) {
    ans += i * i * d;
  }

  ans.writeln;
}