#include <iostream>

using namespace std;

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

    return 0;
}
