#include <iostream>

int main(){
    int d, menseki;
    while(std::cin >> d){
        menseki = 0;
        for(int x = 0; x < 600; x+=d){
            menseki+=d * x * x;
        }
        std::cout << menseki << std::endl;
    }
}