#include <stdio.h>
#include <math.h>

double f(double x){
    return x*x;
};

int main() {

        int d;
        double sum;
        int i;

        scanf("%d",&d);

        for(i=0;i<600/d;i++) {
            double x = i*d;
            
            sum = f(x)*d+sum;
            
        }

        printf("%f\n",sum);

        return 0;
}
