#include <iostream>
#include <vector>
#include <list>
#include <algorithm>
#include <string>
#include <stack>
#include <iomanip>
#include <numeric>
#include <queue>

using namespace std;
using ll = long long;
#define MOD 1000000007
#define INF 1LL << 59

int main()
{
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int d;
    while (cin >> d)
    {
        ll sum = 0;

        for (int i = 1;; ++i)
        {
            if (i * d >= 600)
                break;
            sum += d * (i * d) * (i * d);
        }
        cout << sum << endl;
    }
    return 0;
}
