#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int d;

    while(cin >> d){
        int area = 0;
        for(int i = 1; i * d < 600; i++){
            int miniarea = (i * d) * (i * d) * d;
            area += miniarea;
        }
        cout << area << endl;
    }
}

