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>
#include <stdio.h>
using namespace std ;

int d ;				// 入力を受ける
int total = 0 ;		// 合計

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

		cout << total << endl ;
		total = 0 ;
	}

	return 0 ;
}

C++: /*
 * Problem     : AOJ0014
 * Title       : Integral
 * Author      : mizo0203
 * Copyright   : Your copyright free
 * Description : スタック
 */

#include <stdio.h>
#include <stack>
using namespace std;

int d, sum;

bool input() {

  if (scanf("%d", &d) == EOF)
    return false;

  return true;
}

int main() {
  int i;

  while (input()) {
    sum = 0;
    for (i = d; i < 600; i+=d) {
      sum += i * i * d;
    }
    printf("%d\n", sum);
  }

  return 0;
}

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

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

int main(void)
{
  const int max_x = 600;
  int d = 0;

  while (std::cin >> d) {
    int loop = max_x / d;

    int sum = 0;
    for (int i = 0; i < loop; i++) {
      sum += d * func(d * i);
    }

    std::cout << sum << std::endl;
  }

  return 0;
}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int main()
{
	int d;

	while ( cin >> d )
	{
		int res = 0;

		for ( int i = 0; i * d < 600; i++ )
		{
			res += d * pow( i * d, 2 );
		}

		cout << res << endl;
	}

	return 0;
}

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

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

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

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

double func(double x){
    return x * x;
}

double rectangle_method(double a, double b, int n) {
  double acc = 0, d = (b - a) / n;
  for (int i = 0; i < n; i++) {
    acc += func(a + i * d) * d;
  }
  return acc;
}

int main(){
    int d;
    while(scanf("%d",&d) != EOF){
        cout << (int)rectangle_method(0, 600, 600/d) << endl;
    }

    return 0;
}

C++: #include <iostream>
using namespace std;
int main() {
  for(int i = 0; i < 20;i++) {
  int d;
  cin >> d;

  int n = 1;
  int sum = 0;
  while(n * d < 600) {
    sum += (n*d) * (n*d) * d;
    n++;
  }
  cout << sum << endl;
  }
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<cstdio>
#include<climits>
#include<cmath>
#include<cstring>
#include<string>
#include<complex>

#define EPS (1e-10)
using namespace std;
#define PI (3.1415926535)

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

int main(){
	int d;
	int s;

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

	return 0;
}

C++: /*#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>


#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



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

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = { -2 };

void input(void) {
	CI n;
	return;
}


int main(void) {
	input();
	double money = 100000;
	
	for (int i = 0; i < n; i++) {
		money *= 1.05;
	}
	
	if ((int)money % 1000 >= 500) {
		CO (int)(money - ((int)(money) % 1000) + 1000) E
	}
	else {
		CO (int)(money - ((int)(money) % 1000)) E
	}

	

	return 0;
}

*/

#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>


#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



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

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
long long int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = { -2 };

void input(void) {
	
	return;
}


int main(void) {
	
	int i = 1;
	int sum = 0;
	
	while (scanf("%d",&n) != EOF) {
		while (true) {
			sum += (n * n * (i - 1) * n * (i - 1));
			if ((n * i) == 600)break;
			i++;
		}

		CO sum E
		sum = 0;
		i = 0;
	}
	return 0;
}

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

#define REP(i,n) for(int i=0; i<n; i++)

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

C++: #include<cstdio>
//#include<cmath>
 
//#include<iostream>
using namespace std;
 
int main(){
long d, x, S;

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

    return 0;
}

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

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

C++: #include <iostream>

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

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


using namespace std;

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

	return 0;
}

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, 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;
  
int main()
{
    int d;
  
    while (~scanf("%d", &d)) {
        int ans = 0;
        for (int a = d; a <= 600 - d; a += d) ans += a * a * d;
        printf("%d\n", ans);
    }
}