Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		d, _ := strconv.Atoi(sc.Text())
		var area int
		for i := 1; i*d < 600; i++ {
			area += d * (d * i) * (d * i)
		}
		fmt.Println(area)
	}
}

C++: #include <iostream>
using namespace std;
int main( void )
{
  int d,s;
  while( 1 ){
    cin >> d;
    if( cin.eof() ) break;
    s = 0;
    for( int i=d; i<600; i+=d ) s += i*i*d;
    cout << s << endl;
  }
  return 0;
}

C++: #include <stdio.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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

C++: #include <iostream>
using namespace std;

int main()
{
	int d;

	while(cin >> d)
	{
		int value=0,s=0;

		while(value != 600-d)
		{
			value += d;
			int line = value*value;
			s += line*d;
		}

		cout << s << endl;
	}

	return 0;
}

C++: #include<iostream>
using namespace std;
int f(int x){
    return x*x;
}
int g(int k,int d){
    int s = f(k*d) * d;
    //cout << s <<endl;
    return s;
}
int main(){
    int n = 0;
    int d[20];
    int s[20];
    while(cin >> d[n]){
        n++;
    }
    for(int i = 0;i < n ;i++){
        s[i] = 0;
        for(int j = 1;j < 600 / d[i] ;j++ ){
            s[i] += g(j,d[i]);
        }
        cout << s[i] << endl; 
    }
    return 0;

}

C++: //#define _USE_MATH_DEFINES
#include <iostream>
//#include <stdio.h>
//#include <iomanip>
#include <vector>
//#include <string>
//#include <algorithm>
//#include <functional>
//#include <cmath>
//#include <time.h>

using namespace std;


int main(){

	int d,x,y,S;


	while (cin >> d){
		S = 0;
		x = 0;
		while (x < 600 -d){
			x += d;
			y = x*x;
			S += d * y;
		}
		cout << S << endl;
	}

	return 0;
}

C++: #include <iostream>
#include <cstdio>

using namespace std;

int main() {
  int d, sum;
  while(!feof(stdin)) {
    scanf("%d", &d);
    if(feof(stdin)) break;
    sum=0;
    for(int i=d;i!=600;i+=d) {
      //printf("%d\n", i*i*i*d);
      sum+=d*i*i;
    }
    printf("%d\n", sum);
  }
}

C++: #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#include<cstdio>

using namespace std ;

#define pb(n) push_back(n)
#define fi first
#define se second
#define all(r) (r).begin(),(r).end()

#define rep(i,n) for(int i = 0; i < (n);++i)
#define repc(i,a,b) for(int i = (a);i <(b);++i)
#define repa(n,array) for(auto n :(array))

typedef long long ll ;
typedef vector<int> vi ;
typedef vector<ll> vl ;

constexpr int IMAX = ((1<<30)-1)*2+1 ;
constexpr int INF = 100000000;
double EPS = 1e-10 ;

int main(){
  int num,ans = 0;
  cin >> num ;
  for(int i = num; i < 600;i+=num){
    ans += i*i*num ;
  }
  cout << ans << endl ;

  return 0;
}