#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cmath>
#include <stack>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

int main(){
    int d;
    while (cin >> d){
        int n = 600 / d, ans = 0;
        REP(i, n){
            ans += (i*d)*(i*d)*d;
        }
        cout << ans << endl;
        ans = 0;
    }
}
