#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main() {
    int a, b, d, sum;
    sum = 0;
    cin >> d;
    for (int i = 1; i <= 600 - d; ++i) {
        a = i * d;
        b = a * d;
        sum = sum + b;
    }
    cout << sum << endl;
    return 0;
}
