#include<iostream>
using namespace std;

int main()
{
    
    int n;
    while (cin >> n) {
        int ans = 0;
        for (int i = 0; i < 600; i += n) {
            ans += n*i * i;
        }
        cout << ans << endl;
    }
    
    return 0;
}