#include <iostream>
#include <cstdio>
using namespace std;

int main(){
  int d;
  long long sum;
  while(scanf("%d",&d)!=EOF){
    sum=0;
    for(int i=0;i<=600-d;i+=d){
      sum+=(i*i)*d;
    }
    printf("%lld\n",sum);
  }
  return 0;
}