#include<iostream>
using namespace std;

int main()
{
    int n, m;
    long double ans = 0;
    cin >> n;
    m = 600 / n;
    for (int i = 0; i < 600; i += n) {
        ans += n*i * i;
    }
    cout << ans << endl;
    return 0;
}