#include <iostream>
#include <stdio.h>
#include <cmath>
using namespace std;

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


int main(){
  int d;
  while(cin >>d){
    int sum = 0;
    while(d==600){
      sum+=f(d);
      d= d+d;
    }
    cout << sum <<endl;
  }
}