#define _GLIBCXX_DEBUG
#include <iostream>
#include <cmath>
#include <cstring>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <algorithm>
#include <numeric>

typedef long long ll;

int main(int argc, char* argv[])
{
  ll d;
  while (std::cin >> d) {
    ll ans = 0;
    for (ll x = d; x < 600; x += d) {
      ans += d * x * x;
    }
    std::cout << ans << std::endl;
  }

  return 0;
}

