#include <cstdio>
#include <cmath>
#include <algorithm>
using namespace std;
int main()
{
    int d, s;
    while(scanf("%d", &d) != EOF) {
        s = 0;
        for (int i = d; i <= 600; i+=d) s+= d * pow((i-d), 2);
        printf("%d\n", s);
    }
    return 0;
}

