Go: package main

import "fmt"

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

Python: while 1:
    ans=0
    try:
        d=input()
        for i in xrange(600/d-1):
            ans+=d*(d*(i+1))**2
        print(ans)
    except:break

Python: while True:
  try:
    d=int(input())
    count=0
    for i in range(1,int(600/d)):
      count+=((i*d)**2)*d
    print(count)
  except EOFError:
    break

Python: for line in open(0).readlines():
    d = int(line)
    ans = 0
    for x in range(0, 600, d):
        ans += x*x
    print(ans * d)

Python: while True:
    try:
        d = int(input())
        x = 600 // d 
        s = 0
        i = 1

        for i in range(x):
            D = (i * d)**2
            s= D * d + s
            i = i + 1
    
        print(s)
    except:
        break

Python: try:
    while True:
        A=0
        d=int(input())
        
        a=600//d
        
        for i in range(a):
            A+=((i*d)**2)*d
            
        print(A)
        
        
except EOFError:
    pass

Python: import sys

for line in sys.stdin:
    n, d = 0, int(line)
    for i in range(d, 600, d):
        n += d * i ** 2
    print(n)

Python: t = 0
while t == 0:
    try:
        d = int(input())
    except:
        break
    else:
        print(sum(d * ((i * d) ** 2) for i in range(int(600/d))))

Python: while 1:
    try:
        d=int(input())
        x=d
        y=x**2
        S=d*y
        while S<=72000000:
            x+=d
            y=x**2
            de=72000000-S
            S+=d*y
        if de<(S-72000000):
            print(72000000-de)
        else:
            print(S)
    except EOFError:
        break

Python: while True:
    try:d=int(input())
    except:break
    
    list=[(i*d)**2*d for i in range(600//d)]
    print(sum(list))

Python: while True:
    try:
        d=int(input())
    except:
        break
    x=(600//d)
    s=0
    for i in range(1,x):
        s+=((i*d)**2)*d
    print(s)

Python: while True:
    try:
        d = int(input())
        S = 0
        l = 600 // d
        for i in range(l):
            S += d * d * i * d * i
        print(S)
    except:
        break

Python: import fileinput
for x in fileinput.input():
    x = int(x)
    t = 600 // x
    s = 0
    for i in range(1, t):
        s += x * (i * x)**2
    print(s)

Python: while True:
    try:
        d=int(input())
    except:
        break
    ans=0
    for i in range(d,601-d,d):
        y=i**2
        ans+=d*y
    print(ans)

Python: while(True):
    try:
        d=int(input())
        sum=0
        for i in range(int(600/d)):
            sum+=(((i*d)**2)*d)
        print(sum)
    except:
        break

Python: while True:
    a=0
    try:
        d=int(input())
    except EOFError:
        break
    count=1
    for i in range(0,600,d):
        a+=i**2*d
        count+=1
    print(a)

Python: while True:
  try:
    d = int(input())
    ans = 0
    for x in range(0,600,d):
      ans += d*x*x
    print(ans)
  except:
    break

Python: for j in range(20):
    try:
        d = int(input())
        size = 0
        
        for i in range(600//d - 1):
            #print(i, i*d, (i*d)**2, d, size)
            i += 1
            size += ((i*d)**2) *d
            
        print(int(size))
        
    except:     break

Python: while True :
    try :
        d = int(input())
    except EOFError :
        break
    
    S = 0
    for i in range(600//d) :
        S += (i * d)**2 * d
    print(S)

Python: def f(x):
    return x*x
while True:
    try:
        d=int(input())
        x=600//d
        s=0
        for i in range(x):
            s+=d*f(i*d)
        print(s)
    except EOFError:
        break

Python: def seki(x):
    a=[]
    for i in range(600//x):
        a.append((i*x)**2*x)
    print(sum(a))
while 1:
    try:
        n = int(input())
    except:
        break
    seki(n)

Python: import sys
  
MAX_X = 600

for dstr in sys.stdin:
    d = int(dstr)
    x = 600//d
    area = 0
    for i in range(x-1):
        area += d*((d*(i+1))**2)
    print(area)

Python: import sys

def calcIntegral(d:int)->float:
    result = 0
    for x in range(0,600,d):
        result += d*x**2
    return result


if __name__ == '__main__':
    for tmpLine in sys.stdin:
        d = int(tmpLine)
        print(calcIntegral(d))

Python: def function(a):
	s=0
	d=a
	for i in range(d,600-d+1,d):
		s+=a*(d**2)
		d+=a
		#print("%10d %10d"%(d,s))
	return s


n=int(input())
print(function(n))

Python: import sys

for line in sys.stdin:
    n, d = 0, int(line)
    for i in range(d, 600, d):
        n += d * i ** 2
    print(n)

Python: import sys
x = 600
sum = 0
for line in sys.stdin:
    d = int(line)
    sum = 0
    for i in range(1,x//d):
        sum += (i*d)**2*d
    print(sum)

Python: while True:
    try:
        d=int(input())
        S=0
        for i in range(d,600,d):
            S+=d*i*i
        print(S)
    except EOFError:
        break

Python: #! /usr/bin/python

def main():
	dx = int(raw_input())
	area = integral(dx)
	print(area)

def integral(dx):
	x = 0
	area = 0
	while x < 600:
		area += f(x) * dx
		x += dx

	return area;

def f(x):
	return x * x

main()

Python: def f(x):
    return x*x
while True:
    try:
        d=int(input())
        x=600//d
        s=0
        for i in range(x):
            s+=d*f(i*d)
        print(s)
    except EOFError:
        break

Python: import sys
for i in map(int,sys.stdin):
    sum=0
    for j in range(600//i-1):
        sum+=i*((j+1)*i)*((j+1)*i)
    print(sum)

Python: while True:
    try:
        d = int(input())
        print(sum(d * x**2 for x in range(d, 600, d)))
    except: break

Python: while True:
    try:
        d=int(input())
        sum=0
        for i in range(0,600,d):
            sum+=i**2*d
        print(sum)
            
    except:
        break

Python: try:
    while True:
        d = int(input())
        s = 0
        for i in range(600//d):
            tate = (i*d)**2
            yoko = d
            s += tate * yoko
        print(s)
except EOFError:
    pass

Python: from sys import stdin
f = lambda x:x**2

for line in stdin:
    S = 0
    d = int(line)
    for i in range(int(600/d)):
        S += f(d*i)*d
    print(S)

Python: while 1:
    try:d=int(input())
    except:break
    print(sum([(i*d)**2*d for i in range(600//d)]))

Python: # coding: utf-8
# Your code here!

while True:
   try:
      d = int(input())
      ans = 0
      for i in range(1, 600 // d):
         ans = ans + ((i * d) ** 2) * d
      print(ans)

   except EOFError:
      break

Python: try:
    while(True):
        d = int(input())
        s = 0
        for i in range(d, 600, d):
            s = s + d*i**2
        print(s)
except:
    pass

Python: import sys
S=lambda s:sum([((i*s)**2)*s for i in range(int(600/s))])
[print(S[int(line)]) for line in sys.stdin]

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*d*i*i;
		}
		cout << S;
	}
}

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

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

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