Go: package main

import "fmt"

func main() {
	var d int
	for {
		fmt.Scan(&d)
		sum := 0
		for i := 0; i < 600/d; i++ {
			sum += d*d*i*d*i
		}
		fmt.Println(sum)
	}
}

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;
    while(d==600){
      sum+=f(d);
      d= d+d;
    }
    cout << sum <<endl;
  }
}

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

int main(){
        int n;
        while(cin >> n){

                int sum =0;
                for(int i=1; i < 600/n; i++)
                {
                        sum += (i*n)*(i*n)*n;
                }
                cout << sum << endl;
        }

}

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;
}

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <stdio.h>

using namespace std;

int main()
{
	int d;
	unsigned int ans;

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

		cout<<ans<<endl;
	}


	return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define repb(i, a, b) for(int i = a; i >= b; i--)
#define all(a) a.begin(), a.end()
#define int long long
using namespace std;
typedef pair<int, int> P;

signed main(){
    int d;
    while(cin >> d){
        int n = 600 / d;
        int sum = 0;
        rep(i, 0, n){
            sum += d * (i * d) * (i * d);
        }
        cout << sum << endl;
    }
}

C++: #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
    ll n,ans,i;
    while(cin >> n){
        ans = 0;
        for(i=n;i<600;i+=n) ans += n*i*i;
        cout << ans << "\n";
    }
}

C++: #include <stdio.h>
#define NN 600
int f(int x){ return x*x; }
int main(){
	int d,h,s;
	while(scanf("%d",&d)!=EOF){
		s=0;
		for(h=d;h<NN;h+=d){
			s += d*f(h);
		}
		printf("%d\n",s);
	}
	return 0;
}

C++: #include<iostream>
#include<vector>
using namespace std;
int main(){
  int d,s;
  int S = 0;
  int n = 20;
  int y,x;
  while(n > 0){
    cin >> d;
    int y = x * d;
    for(y < 600-d;y++;){
      int x[1000];
    } 
    int s = y * d;
    int n = n - 1;
    int S = S + s;
  }
    cout << S << endl;
  return 0;
}

C++: #include <stdio.h>

int area(int d)
{
	int i, s=0;
	for(i=d; i<600; i+=d)
	{
		s+=d*i*i;
	}
	return s;
}

int main (void)
{
	int d;
	while(scanf("%d", &d)!=EOF)
	{
		printf("%d\n", area(d));
	}
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

int main(int argc, char *argv[]){
  int d;
  while(std::cin >> d){
    int ans = 0, cnt = 1;
    while(d*cnt < 600){
      ans += d*d*d*cnt*cnt++;
    }
    std::cout << ans << std::endl;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int d;
	cin >> d;

	int integral = 0;
	for(int i = 0; i < 600 / d; i++)
	{
		int x =  i * d;
		int y = x * x;
		integral += y * d;
	}
	
	cout << integral << endl;

	return 0;
}

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

C++: #include <iostream>

int integral(int d){
    int area = 0;
    for(int i = 1; i < (600 / d); ++i){
        area += (d * (i  * d) * (i * d));
    }
    return area;
}

int main(){
    int d;
    while(std::cin >> d){
        if(d == -1)  break;
        std::cout << integral(d) << std::endl;
    }
    return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	int d, tmp, i;
	
	while(cin >> d){
		tmp = 0;
		i = 1;
		while((i*d)!=(600)){
			tmp += (d*i*i*d*d);
			i++;
		}
		cout << tmp << endl;
	}
	
	return 0;
}

C++: #include <iostream>

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

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

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

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

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

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

C++: #include <bits/stdc++.h>
using namespace std;
/* {{{ */
/*-------------------------------*/
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define RFOR(i, a, b) for(int i = (b) - 1; i >= (a); i--)
#define REP(i, n) for(int i = 0; i < (n); i++)
#define rep(i, n) for(int i = 0; i < (n); i++)
#define RREP(i, n) for(int i = (n) - 1; i >= 0; i--)
#define rrep(i, n) for(int i = (n) - 1; i >= 0; i--)

#define all(i) (i).begin(),(i).end()
#define rall(i) (i).begin(),(i).end(),greater<int>()
#define print(x) cout << (x) << endl
#define PB push_back
#define pb push_back
#define mp make_pair
#define FI first
#define SE second

inline int in(){int x;std::cin>>x;return x;}
struct FAST {FAST(){cin.tie(0);ios::sync_with_stdio(false);}} Fast;
typedef long long ll;
typedef pair<int, int> pint;
typedef vector<int> vi;
typedef vector<vector<int> > vii;
typedef vector<long long> llv;
typedef vector<pint> vpint;
/*-------------------------------*/
/* }}} */ 

signed main(void)
{
  int d;

  while (cin >> d){
    int res = 0;
    FOR(i, 1, 600 / d) res += d * i * d * i * d;

    cout << res << endl;
  }

  return 0;
}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <cstring>
#include <climits>
#include <algorithm>
#include <map>
#include <set>
#include <stack>
#include <vector>
#include <queue>
#include <string>
#include <complex>
using namespace std;

#define rep(i,n) for(int i=0; i<n; i++)
#define repa(i,s,e) for(int i=s; i<=e; i++)
#define repd(i,s,e) for(int i=s; i>=e; i--)

typedef vector<int> vi;

int main() {
	int n;
	while(scanf("%d", &n)!=EOF) {
		int s = 0;
		int w = 600 / n;
		rep(i,w) {
			int h = n * i;
			s += h * h * n;
		}
		printf("%d\n", s);
	}
}

C++: #include <cstdio>
using namespace std;
 
int main()
{
    int i,d;
    while (scanf("%d",&d)!=EOF){
        int sum=0;
        for (i=d;i<=600-d;i+=d) sum+=i*i*d;
        printf("%d\n",sum);
    }
    return 0;
}

C++: #include <stdio.h>
#include <string>
#include <iostream>
#include <math.h>
#include <stack>

using namespace std;

int main(){

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

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

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);

  int d;
  while(cin >> d) {
    int s = 0;
    for(int n=d;n<D;n+=d) {
      s += n*n * d;
    }
    cout << s << endl;
  }
}