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: # -*- coding:utf-8 -*-

import sys

def func(x):
    return x**2

def rec(x,d):
    return d*func(x)

array = []
for i in sys.stdin:
    array.append(int(i))

for i in range(len(array)):
    d = array[i]
    k = int(600/d)
    result = 0
    for j in range(k):
        result += rec(j*d,d)

    print(result)

Python: # coding: utf-8
# 82

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

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

Python: ans_l = []
while True:
    try:
        d = int(input())
        x_coordinate = -d
        def height(x_coordinate):
            return x_coordinate**2
        ans = 0
        for i in range(600//d):
            x_coordinate += d
            ans += d * height(x_coordinate)
        ans_l.append(ans)
    except:
        break
print(*ans_l,sep='\n')

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

while True:
	try:
		n=int(input())
		print(function(n))
	except EOFError:
		break

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

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

Python: if __name__ == '__main__':
    while True:
        ans = 0
        try:
            n = int(input())
            for i in range(1, 600//n):
                ans += ((n*i)**2) * n
            print(ans)
        except EOFError:
            break

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

Python: #! /usr/bin/python

import sys

def main():
	for input in sys.stdin:
		dx = int(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: while True:
    try:
        d = int(input())
    except EOFError:
        break
    S = 0
    for i in range(1, 600//d):
        S += (i*d)**2 * d
    print(S)

Python: def f(x):
    return pow(x, 2)

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

Python: while 1:
    try:
        d=int(input())
        a=0
        b=d
        for i in range(1,(600//d)):
            h=b*b
            s=d*h
            b+=d
            a+=s
        print(a)

            
    except EOFError:
        #print(a)
        break

Python: import sys

while True:
  d = sys.stdin.readline()
  if not d: break
  d = int(d)
  x = d
  sum = 0
  while x < 600:
    sum += x * x * d
    x+=d
  print(sum)

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

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

    ans = 0
    x = d
    while x < 600:
        ans += (x ** 2) * d
        x += d
    print(ans)

Python: #!/usr/bin/env python
import sys

def function(x):
    return x*x

def calculate(d, max):
    val = d
    result = 0
    while val < max:
        result += function(val) * d
        val += d
    return result

if __name__ == '__main__':
    for line in sys.stdin:
        print(calculate(int(line), 600))

Python: 
import sys
def func(x):
   fun = x*x
   return fun
def cal(d):
   s = 0
   for i in range(1,int(600/d)):
       s = s + d * func(i*d)
   return s
for line in sys.stdin.readlines():
   d = int(line)
   print(cal(d))

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

Python: #82 数値積分

while True:
    try:
        d = int(input())
    except:
        break
    
    ans = 0
    x = d
    while x<600:
        ans += (x ** 2) * d
        x += d
    print(ans)

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

Python: import sys
D=[]
for line in sys.stdin:
    D.append(int(line))
for d in D:
    print(sum([(((i+1)*d)**2)*d for i in range(int(600/d)-1)]))

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

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

    c = 0
    x = d
    while x < 600:
        c += (x ** 2) * d
        x += d
    print(c)

Python: import math
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
    
    S = 0
    for i in range(d, 600, d):
        S += d*(i**2)
    print(S)

Python: while 1:
    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())
  except EOFError:
     break
  s = 0
  for i in range(600//d):
    s += d*(i*d)**2
  print(s)

Python: import sys

for d in map(int, sys.stdin):
    print(sum(d * cd ** 2 for cd in range(d, 600, d)))

Python: import sys
 
for d in sys.stdin:
    a = int(d)
    print(sum(a * x**2 for x in range(a, 600, a)))

Python: import sys

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

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

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

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: import sys

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

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

Python: # coding: utf-8
# Your code here!
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 EOFError:
        break
    
    seki(n)

Python: # AOJ 0014 Integral
# Python3 2018.6.10 bal4u

import sys

for d in sys.stdin:
    print(sum(x**2 for x in range(int(d), 600, int(d))))

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