#include <iostream>
#include <stdio.h>
#define _USE_MATH_DEFINES
#include <cmath>
#include<algorithm>
using namespace std;
int main()
{
    double d;
    int s;
    while(cin >> d){
        s = 0;
        for(int i = 1;d*i < 600;i++){
            s = s + i*i*d*d*d ;
        }cout << s << endl;
        
    }
}