#include <iostream>
 
using namespace std;
int main(void){
        int d;
        while(!cin.eof()){
                cin >>d;
                int total=0;
                for(int i=d; i<600; i+=d)
                        total+=i*i;
                total*=d;
                cout << total << endl;
        }
        return 0;
}