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

void main()
{
  string input;
  int div;

  while ((input = readln().chomp()).length != 0) {
    div = input.to!int();
    int[] position = iota(600).filter!(a => a % div == 0).array();
    int sum;
    foreach (pos; position) {
      sum += pos * pos * div;
    }
    writeln(sum);
  }
}