#include <stdio.h>

int main(void){
  int d;
  while(scanf("%d", &d) != EOF){
    int area = 0;
    int i;
    for(i=d; i<600; i+=d){
      area += i*i*d;
    }

    printf("%d\n", area);
  }

  return 0;
}