Go: package main

import (
        "fmt"
)

func main() {
        var n int
        for {
                _, err := fmt.Scanf("%d", &n)
                if err != nil {
                        break
                }
                area := 0
                for i := n; i < 600; i += n {
                        area += i*i * n
                }
                fmt.Printf("%d\n", area)
        }
}

C++: #include <iostream>

using namespace std;

int main() {
  int d;
  while (cin >> d) {
    int ans = 0;
    for (int x = d; x < 600; x += d) {
      ans += x * x;
    }
    ans *= d;
    cout << ans << endl;

  }

  return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	long d,s;
	while(cin >> d){
		long D = d*d*d;
		s = 0;
		for(int i=1;i*d<600;i++){
			s += D*i*i;
		}
		cout << s << endl;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int n;
	while(cin >>n){
		int sum = 0;
		for(int i=0;i<600;i+=n){sum+=i*i*n}
		cout <<sum<<endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main() {
  int a,i,s;
  while(s=0&&cin>>a){
    for(i=1;a*i<600;i++)s=s+i*i*a*a*a;
    cout<<s<<endl;
  }
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <deque>
#include <list>
#include <string>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>

using namespace std;

int d;
int sum;

int main() {
	d = -1;
	cin >> d;
	while (d != -1) {
		sum = 0;
		
		for (int x = d; x < 600; x += d) {
			sum += d * (x * x);
		}

		cout << sum << endl;
		
		d = -1;
		cin >> d;
	}

	return 0;
}

/*@@@@@@@@@@@@@@@@@@@@@@@@@*/
/*@                       @*/
/*@ debug output erased ? @*/
/*@                       @*/
/*@@@@@@@@@@@@@@@@@@@@@@@@@*/

C++: #include <iostream>

using namespace std;

int main()
{ 
	int d;
	
	while (cin >> d)
	{
		int area = 0;
		for (int i = d; i <= 600 - d; i += d)
			area += ((i * i) * d);

		cout << area << endl;
	}

	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int n;
	while (cin >> n){
		int sum = 0;
		for (int i = n; i<600; i += n){
			sum += n*i*i;
		}
		cout << sum << endl;
	}
}

C++: #include <iostream>
using namespace std;
int main(){
  int d,i,area;
  while(cin>>d){
    area = 0;
    for(i=0;i<600/d;i++){
      area += i * i * d * d * d;
    }cout << area << endl;
  }
}

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

int f(int x)
{
	return pow(x, 2);
}

int main()
{
	int n;
	while (cin >> n) {
		long long int sum = 0;
		for (int i = n; i <= 600 - n; i += n)
			sum += f(i)*n;
		cout << sum << endl;
	}
	return 0;
}

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

#define X_MAX 600

int main()
{
	int d;
	long s;
	int i;
	while(cin >> d)
	{
		s = 0;
		for(i=d; i<X_MAX; i+=d)
		{
			s += d * i * i;	/* d:width i*i:height */
		}
		cout << s << endl;
		
	}
	return 0;
}

C++: #include<iostream>
#define N 600
double f(double x){
    return x*x;
}


int main(void){
    int d,i;
    double sum;    
    while(scanf("%d",d)){
        sum=0;
        for(int i=d;i<N;i+=d){
            sum+=f(i);
        }
        std::cout<<sum<<std::endl;
    }
    return 0;
}

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

int main(){
	int d;
	int x;
	int s;
	
	while(cin >> d){
    s = 0;
		for(int i=d;i<600;i+=d){
			s += d*i*i;
		}
		cout << s << "\n";
	}
	return 0;
}

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

double dF(double x)
{
    return pow(x, 2);
}

double dIntegral(double d)
{
    double ans = 0;
    for(int i = 1; i <= 600 / d; i++)
    {
        ans += dF(i * d);
    }

    return ans;
}

int main()
{
    double d;
    while(cin >> d)
    {
        cout << dIntegral(d) << endl;
    }

    return EXIT_SUCCESS;
}

C++: #include<iostream>
int main(){
	int i,d,s;
	while(std::cin>>d){
		s=0;
		for(i=0;i<600;i+=d){
			s+=d*i*i;
		}
		std::cout<<s<<std::endl;
	}
	return 0;
}

C++: #include <iostream>

int main(){
	int d;
	while(std::cin >> d){
		int sum = 0, num = 600 / d;
		for(int i = 1 ; i <= num - 1 ; ++i){
			sum += (d * (d * d * i * i));
		}
		std::cout << sum << std::endl;
	}
    return 0;
}

C++: #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;
    int x=0;
    while(x < 600){
      sum+=f(x);
      x+= d;
    }
    cout << sum <<endl;
  }
}

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

int main() {
    int d, s, i;
    while (cin >> d) {
        s = 0;
        for (i = 1; i < 600/d; i++) {
            s += d * (d * i) * (d * i);
        }
    cout << s << endl; 
    }
    return 0;
}

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

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

int main() {
    double d;
    int S;
    while(cin >> d){
        S = 0;
        for(int i = 1;d*i < 600;i++){
            S = S + (d*i*d*i)*d ;
        }
        cout << S << endl;
    }
    return 0;
}

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

#define F(d, i) ((d) * (i) * (i))

int main(void)
{
	int d;

	while(cin >> d) {
		unsigned long s = 0;

		for(int i = d; i < 600; i += d) {
			s += F(d, i);
		}

		cout << s << endl;
	}

	return 0;
}

C++: #include<iostream>

int main(){
	int d, area;
	while (std::cin >> d) {
		area = 0;
		for (int i = 1; i < 600/d; ++i) 
			area += i*i*d*d;
		std::cout << area << std::endl;
	}
	return 0;
}

C++: #include <stdio.h>

int main(int argc, char** argv)
{
  int d;
  
  while (fscanf(stdin, "%d", &d) == 1) {
    int s = 0;
    
    for (int i = 0; i < 600 / d; i ++)
      s += i * d * i * d * d;
    
    fprintf(stdout, "%d\n", s);
  }
}

C++: #include<iostream>

using namespace std;

int main(){
	
	int d;
	while(cin>>d)
	{
		if(d==0) break;
		int y=0,m=0;
		while(m<600){
		
		y+=m*m*d;
		m+=d;;
		}
		cout<<y<<endl;
	}
}

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

int main(){
	int sigma[200] = {0},cor = 0,x,dx;
	while(cin >> dx){
		for(x = 0;x < 600;x+=dx){
			sigma[cor] += dx*x*x;
		}
		cor++;
	}
	for(int i= 0;i < cor;i++){
		cout << sigma[i] << endl;
	}
	return 0;
}

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

using namespace std;

int main(){
    int D;
    while(cin>>D){
        int d=D;
        int ans=0;
        for(int i=600;i>0;i-=D){
            d-=D;
            ans+=pow(d,2)*D;
        }
        
        cout<<ans<<endl;
    }
    
    return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    float d;
    float LuasPersegiPanjang = 0;
    float TinggiPersegiPanjang[600];
    float TinggiSementara;

    cin >> d;

    float BanyakPersegiPanjang = 600/d;
    TinggiSementara = d;
    for(int x = 0; x < BanyakPersegiPanjang-1; x++)
    {
        TinggiPersegiPanjang[x] = TinggiSementara*TinggiSementara;
        TinggiSementara = TinggiSementara + d;

        LuasPersegiPanjang = LuasPersegiPanjang + (TinggiPersegiPanjang[x] * d);
    }

    cout << LuasPersegiPanjang;


}

C++: #include <iostream>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int d = n;
    long long s = 0;
    while (d < 600) {
      s += n * d * d;
      d += n;
    }
    cout << s << endl;
  }
}

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

int main(void){
	int d;
	int res=0;
	while(cin>>d){
		for(int i=0; i<(600/d); i++){
			res += d*(d*i)*(d*i);
		}
		cout << res << endl;
		res = 0;
	}
	return 0;
}

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

int f_r(int d,int x){
	x=x+d;
	if(x>=600)return 0;
	return d*x*x+f_r(d,x);
}
int main(){
	int d;
	int s;
	while((scanf("%d",&d))!=EOF){
		
		s=f_r(d,0);
		printf("%d\n",s);
	}
	return 0;
}