Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	n, err := strconv.Atoi(nextString())
	return n, err
}

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

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		d, err := nextInt()
		if err != nil {
			break
		}

		area := 0
		for i := 0; i < 600/d; i++ {
			x := i * d
			area += f(x) * d
		}
		fmt.Println(area)
	}
}

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;
    
    for(y < 600-d;y++;){
      int x[1000]; 
      int y = x * d;
    int s = y * d;
    int n = n - 1;
    int S = S + s;
  }
    cout << S << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <cmath>
#include <stack>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
using namespace std;

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

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

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

using namespace std;

int main(){

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

    return 0;
}

C++: #include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
#include <cstring>
#include <utility>
#include <vector>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#define debug(x) cerr << #x << ':' << x << endl
#define rep(i,n) for(int i=0;i<(int)n;++i)
#define ALL(c) (c).begin(), (c).end()
using namespace std;
typedef long long ll;

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

        cout << ans << endl;
    }
    return 0;
}

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

int d, area, sum;

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

int main()
{
	while (cin >> d)
	{
		sum = 0;
		for (int i = 0; i < MAX / d; i++)
		{
			area = d*(f(i*d));
			sum += area;
		}
		cout << sum << endl;
	}
	return 0;
}

C++: #include <stdio.h>

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

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