#include<stdio.h>
#include <iostream>
#include <cmath>
using namespace std;

double pi = acos(-1);

int main()
{
    int d;
    while (cin >> d){
        int i;
        unsigned long long sum = 0;
        for (i = 0; i < 600; i += d){
            sum += i*i;
        }
        cout << sum*d << endl;
    }
}