#include <iostream>
using namespace std;
 
int f(int x) {
    return x*x;
}
 
int main(int argc, char** argv) {
    int d;
    while(cin >> d) {
        int s = 0;
        for(int i=d; i<600; i+=d) {
            s += f(i)*d;
        }
        cout << s << endl;
    }
    return 0;
}
