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

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

Python: output = []
while True:
    try:
        d = int(input())
    except :
        break
    sum = 0
    for x in range(1,600//d):
        sum = sum + d * (d*x) * (d*x)
    output.append(sum)
for x in range(len(output)):
    print(output[x])

Python: import sys

for line in sys.stdin:
  try:
    d = int(line)
    result = 0
    f = d
    while f < 600:
      result += f**2 * d
      f += d
    print(result)
  except:
    break

Python: # -*- coding: utf-8 -*-
import math
errerN=1

while errerN:
    try:
        volume=0
        a=int(input())
        for x in range(0,600,a):
            volume+=x*x*a
        print(volume)
    except :
        errerN=0

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

Python: while True:
    try:
        d=int(input())
        i=1
        k=0
        while i*d<(600-d+1):
            l=(i*d)**2
            k+=l*d
            i+=1
        print(k)
    except EOFError:
        break

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

Python: def get_input():
    while True:
        try:
            yield int(raw_input())
        except EOFError:
            break

num_lis = list(get_input())

for num in num_lis:
    all_count = 600/num
    S = 0
    for i in range(all_count-1):
        count = i+1
        yoko = num
        tate = (count*num)**2
        S += (yoko*tate)
    print(S)

Python: def integral(d):
    n = 600//d
    s = 0.0
    for i in range(n):
        s += (d*i)**2
    return(s*d)

if __name__ == '__main__':
    while True:
        try:      
            d = int(input())
            print(int(integral(d)))
        except:
            break

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

Python: while True :
    try :
        d = int(input())
        l = 600 // d
        
        D = []
        
        for i in range(l - 1) :
            D.append(((len(D) + 1) ** 2) * d ** 3)
            
        print(sum(D))
        
    except :
        break

Python: from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
from sys import stdin

for line in stdin:
    if not line.strip():
        continue
    d = int(line)
    print(sum(d * nd ** 2 for nd in xrange(0, 600, d)))

Python: while(1):
    try:
        d = int(input())
    except:
        break

    s = 0
    w = d
    while d < 600:
        h = d * d
        s += h * w
        d += w
    print(s)

Python: import sys

a, b = 0, 600


def f(x):
    return x ** 2


if __name__ == '__main__':
    for line in sys.stdin:
        d = int(line)
        sum = 0
        for i in range(a, b, d):
            sum += d * f(i)
        print(sum)

Python: while 1:
    try:
        d=int(input())
        if d==0:
            break
        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: # coding: utf-8
# Your code here!

import sys

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

Python: while True:
  try:
    sums = 0
    d = int(input())
    n = 600//d
    for s in range(n):
      D = d*((s*d)**2)
      sums += D
    print(sums)
  except:
    break

Python: import sys
for d in map(int,sys.stdin):print(sum([i*i*d for i in range(d,600,d)]))

Python: import sys
import math
def area(d,sum1,i):
    while i<=((600//d)-1):
        sum1=sum1+d*i*i*d*d
        i=i+1
    return sum1
        

try:
    while True:
        d=int(input())
        sum0=0 # 初期設定
        i=1 # 初期設定
        area_new=area(d,sum0,i)
        print(round(area_new))
except EOFError:
    pass

Python: # Aizu Problem 0014: Integral
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


def f(x):
    return x**2


def integral(d):
    s = 0
    dd = d
    while dd <= 600 - d:
        s += d * f(dd)
        dd += d
    return s

    
for line in sys.stdin:
    d = int(line)
    print(integral(d))

Python: while True:
    try:
        d = int(input())
    except:
        break

    area = d * sum(x * x for x in range(0, 600, d))
    print(area)

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: while 1:
    try:d=int(input())
    except:break
    print(sum([(i*d)**2*d for i in range(600//d)]))

Python: while(1):
    try:
        d = int(input())
    except:
        break

    s = 0
    w = d
    while d < 600:
        h = d * d
        s += h * w
        d += w
    print(s)

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

Python: try:
    while True:
        d=int(input())
        a=[]
        for i in range(0,600,d):
            s=d*(i**2)
            a.append(s)
        print(sum(a))
except EOFError:
    pass

Python: import math
while 1:
    try:
        d=int(input())
        time=600//d
        S=0
        for i in range(time):
            x=i*d
            y=x**2
            S+=y*d
        print(S)
    except EOFError:
        break

Python: import sys

def f(x):
    return x*x

lines = sys.stdin.readlines()
for line in lines:
    d = int(line)
    n = 600//d
    integ = 0
    for i in range(1,n):
        integ += d*f(i*d)
    print (integ)

Python: import sys
[print(sum([i ** 2 for i in range(int(e), 600, int(e))]) * int(e)) for e in sys.stdin]

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

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

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

Python: def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

def f(x):
    return x*x

N = list(get_input())
for l in range(len(N)):
    d = int(N[l])
    n = int(600 / d)
    S = 0
    for i in range(n-1):
        #print(d+d*i, f(d+d*i))
        S = S + d*f(d+d*i)
    print(S)

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

Python: def fun(x):
    K = x**2
    return(K)
Sta = 0
End = 600
while True:
    try:
        h = int(input())
        n = int(600/h)
        Sun = 0
        for i in range(1,n):
            Sun += fun(h*i) * h
        print (Sun)     
    except EOFError:
        break

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

Python: while(1):
    try:
        n = int(input())
        a = list(range(0,600,n))
        s = sum([i**2 for i in a])*n
        print(s)
    except EOFError:
        break