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()
{
    int d;
    int LuasPersegiPanjang = 0;
    int TinggiPersegiPanjang[600];
    int TinggiSementara;

    cin >> d;

    int 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>
#define f(a) ((a)*(a))

using namespace std;
int main(){
    int d;
    long long int sum;
    while(cin >> d){
        sum=0;
        for(int i=1;i*d<600;i++){
            sum+=f(i*d)*d;
        }
    cout << sum << endl;
    }
    return 0;
}

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

typedef long long ll;

int main(void)
{
    long long int a , b , c , counter;

    while(cin >> a){

        b=600;
        c=0;

        while(true){

            b-=a;

            if(b==0)break;

            c+= b*b;

            //b-=a;
        }

        cout << c*a << endl;
    }

    return 0;
}

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

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

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

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

C++: #include<iostream>

using namespace std;
int solve(int d){
	int ret=0;
	for(int i=d;i<=600-d;i+=d)
		ret+=i*i*d;
	return ret;
}

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

C++: #include <iostream>
 
inline int get_function(const u_int x)
{
    return x * x;
}
 
int get_integral(const u_int x, const u_int d)
{
    u_int ans = 0, num_of_iter = x / d;
    for(u_int i = 1; i < num_of_iter; ++i)
        ans += d * get_function(d * i);
    return ans;
}
 
int main()
{
    const u_int x = 600;
    u_int d;
    while(std::cin >> d)
        std::cout << get_integral(x, d) << std::endl;
     
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using lint = long long int;
using ulint = unsigned long long int;
template<class T = int> using V = vector<T>;
template<class T = int> using VV = V< V<T> >;
template<class T, class U> void assign(V<T>& v, int n, const U& a) { v.assign(n, a); }
template<class T, class... Args> void assign(V<T>& v, int n, const Args&... args) { v.resize(n); for (auto&& e : v) assign(e, args...); }


int main() {
  cin.tie(nullptr); ios_base::sync_with_stdio(false);
  string s;
  while (getline(cin, s)) {
    int d = stoi(s);
    lint res = 0;
    for (int i = 0; i < 600; i += d) {
      res += i * i * d;
    }
    cout << res << '\n';
  }
}

C++: #include<iostream>

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

C++: #include <iostream>

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

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

int main(){
  int d;

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

  return 0;
}

C++: #include <stdio.h>

int main(void){
    int d;
    long s;
	
    while (scanf("%d", &d)){
        s=0;
        for (int i=0; i<600/d; i++){
            s += d*(i*d)*(i*d);
        }
	    printf("%d\n", s);
    }
    return 0;
}

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

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

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

int i,c;

int area(int d) {
    int sum=0;
   for (i=d; i<=600-d ;i+=d){
        c=d*i*i;
        sum=sum+c;
    }
    return sum;
}

int main(void){
    int d;
    while(cin >> d){
    cout << area(d) <<endl;
    }
    return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main(){
	int d;
	int sum = 0;

	cin >> d;

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

}

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

int main() {
    int d;
    while (~scanf("%d", &d)) {
        unsigned long long int r = 0;
        for (int i = 0; i < 600 / d; ++i) {
            r += std::pow(d * i, 2) * d;
        }
        printf("%llu\n", r);
    }
}

C++: #include <stdio.h>

#define X 600

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

C++: #include <stdio.h>

int main(void){
    int d;
    int s;
	
    while (scanf("%d", &d)){
        s=0;
        for (int i=0; i<600/d; i++){
            s += d*(i*d)*(i*d);
        }
	printf("%ld\n", s);
    }
    return 0;
}

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

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

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

int main()
{
	int d[2];
	while(scanf("%d",&d[0])!=EOF) {
		int ans=0;
		d[1] = d[0];
		while(true) {
			ans += pow(d[0],2)*d[1];
			d[0] += d[1];
			if(d[0] >= 600) break; 
		}
		printf("%d\n",ans);
	}	
	return 0;
}

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

#define iota(i,n,b,s) for(int i=int(b);i!=int((b)+(s)*(n));i+=(s))
#define range(i,n,m) iota(i,(((n)>(m))?((n)-(m)+1):((m)-(n)+1)),(n),((n)>(m)?-1:1))
#define rep(i,n) iota(i,(n),0,1)

#define INF (1e9)
#define EPS (1e-9)
#define cons(a,b) (make_pair(a,b))
#define car(a) (a.first)
#define cdr(a) (a.second)
#define cadr(a) (car(cdr(a)))
#define cddr(a) (cdr(cdr(a)))
#define all(a) a.begin(), a.end()
#define trace(var) cerr<<">>> "<<#var<<" = "<<var<<endl;

typedef long long Integer;
typedef double Real;

template<class S, class T>
ostream& operator<<(ostream& os, pair<S,T> p) {
  os << '(' << car(p) << ", " << cdr(p) << ')';
  return os;
}

template<class T>
ostream& operator<<(ostream& os, vector<T> v) {
  os << v[0];
  for (int i=1, len=v.size(); i<len; ++i) os << ' ' << v[i];
  return os;
}

int dx[] = { -1, 0, 1, 0 };
int dy[] = {  0, -1, 0, 1 };

int main() {

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

  return 0;
}

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

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

int i,c;

int area(int d) {
    int sum = 0;
    for(i=d; i<=600-d;i += d){
        c = d * f(i);
        sum = sum + c;
        
    }
    return sum;
}

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

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

int main(){
  string s;
  cin >> s;
  int k;
  for(k=s.size();k>=0;k--){
    printf("%c",s[k]);
  }printf("\n");
  return 0;
}