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

void main() {
  foreach (string line; lines(stdin)) {
    auto d = line.chomp.to!int;

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

    ans.writeln;
  }
}