Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

Integral

Write a program which computes the area of a shape represented by the following three lines:

$y = x^2$

$y = 0$

$x = 600$

-->

It is clear that the area is $72000000$, if you use an integral you learn in high school. On the other hand, we can obtain an approximative area of the shape by adding up areas of many rectangles in the shape as shown in the following figure:

$f(x) = x^2$

 

-->

The approximative area $s$ where the width of the rectangles is $d$ is:

area of rectangle where its width is $d$ and height is $f(d)$ $+$ 

area of rectangle where its width is $d$ and height is $f(2d)$ $+$ 

area of rectangle where its width is $d$ and height is $f(3d)$ $+$ 

...

area of rectangle where its width is $d$ and height is $f(600 - d)$  

The more we decrease $d$, the higer-precision value which is close to $72000000$ we could obtain. Your program should read the integer $d$ which is a divisor of $600$, and print the area $s$.

Input

The input consists of several datasets. Each dataset consists of an integer $d$ in a line. The number of datasets is less than or equal to 20.

Output

For each dataset, print the area $s$ in a line.

Sample Input

20
10

Output for the Sample Input

68440000
70210000



Sample input:
20
10


Sample output:
68440000
70210000

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys


def f(x):
    return x*x

lineNumber = 0
#for line in [ "20", "10" ]:
for line in sys.stdin.readlines():
    lineNumber += 1

    # except line
    if lineNumber == 1:
        cars = []
    
    # get data
    List = map(int, line.strip().split())

    # program
    d = List[0]
    x = 0
    ans = 0
    while x < 600:
        ans += f(x) * d
        x += d
    print ans

Submission status: Accepted

Solution code:
while True:
    try:
        wid = int(raw_input())
        r = 600 // wid
        integral = 0
        for i in range(1,r):
            integral += wid*(wid*i)**2
        print integral
    except:
        break

Submission status: Accepted

Solution code:
import sys
for n in map(int,sys.stdin):
  s=sum([i*i for i in range(n,600,n)])*n
  print s

Submission status: Accepted

Solution code:
import sys
for n in map(int,sys.stdin):
  s=0
  for i in range(n,600,n): s+=i*i
  print s*n

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
	try:
		d = input()
		area = 0
		for i in range(0,600,d):
			area += d * (i**2)
		print area
	except:
		break

Submission status: Accepted

Solution code:
L = []
while 1:
    try:
        d = input()
        x = 600
        ret = 0
        for i in range(0, 600, d):
            ret += d * (i ** 2)
        print ret
    except:
        break

Submission status: Accepted

Solution code:
while 1:
    try:
        d = input()
        print sum(d * (i ** 2) for i in range(0, 600, d))
    except:
        break

Submission status: Accepted

Solution code:
import sys
for d in map(int, sys.stdin):
    print sum(d * (i ** 2) for i in range(0, 600, d))

Submission status: Accepted

Solution code:
try:
    while True:
        d = int(raw_input())
        sm = 0
        for i in range(d, 600, d):
            sm += (i ** 2) * d
        print sm
except:
    pass

Submission status: Accepted

Solution code:
import sys

def drange(start, stop, step):
  r = start
  while r <= stop:
    yield r
    r += step

for s in sys.stdin:
  d = int(s)
  sum = 0
  for x in drange(d, 600, d):
    sum += (x-d)**2*d
  print '%d'%sum

Submission status: Accepted

Solution code:
import sys
for d in map(int,sys.stdin):
  sum = 0
  for x in range(d, 600, d): sum += x**2
  print '%d'%(sum*d)

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
# 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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
# 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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
list=[]
try:
    while True:
        list.append(int(input()))
except EOFError:
    pass
for i in range(len(list)):
    
        
    s=0
    for k in range(0,int(600/list[i])):
    
   
        s=s+(list[i]*k)**2
    print(s*list[i])

Submission status: Accepted

Solution code:
#縦の長さx^2、横の長さ0~600
#for文で600までi-dで回す、たす

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
# 82
while True:
    try:
        q = round(600 / int(input()))
    except:
        break

    S = 0
    for i in range(1, q):
        S += (i * 600 / q) ** 2 * 600 / q
    
    print(round(S))

Submission status: Accepted

Solution code:
#82 数値積分

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
# -*- 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

Submission status: Accepted

Solution code:
# 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)

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
try:
   while True:
      d = int(input())
      S = 0
      if d=='':
         break
      for i in range(1, (600-d)//d+1):
         s = (d * i)**2 *d
         S += s
      print(S)
except EOFError:
   pass

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
# 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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    try:
        n = int(input())
        d = n
        S = 0
        while d < 600:
            S = S + d**2 * n
            d = d + n

        print(S)
    except EOFError:
        break

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
# 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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
    
    except:
        break
    
    n = int(600/d)
    
    S = 0
    for i in range(1,n,1):
        s = d*((i*d)**2)
        S += s
    
    print(S)
    continue

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
for i in range(1,21):
    try:
        s=0
        n=int(input())
        for j in range(n,600-n+1,n):
            d=n*(j**2)
            s+=d
        print(s)
    except EOFError:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
X = 600

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
while True:
    try:
        n = int(input())
    except EOFError:
        break

    step = 600//n

    area = 0
    for i in range(step):
        area += (i*n)**2 * n
    print(area)

Submission status: Accepted

Solution code:
while True:
    try:
        d = int(input())
        sum = 0
        n = d
        while n < 600:
            sum += d * (n ** 2)
            n += d
        print(sum)
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys
N=[]
for l in sys.stdin:
  N.append(int(l))

for i in N:
  j=0
  ans=0
  while j<600:
    ans+=i*(j**2)
    j+=i
  print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def f(x):
    return x**2

def integral(d):
    s = 0
    for _d in range(1, int(600/d)):
        s += f(d * _d) * d
    return s

def run():
    for d in sys.stdin:
        print(integral(int(d)))

if __name__ == '__main__':
    run()

Submission status: Accepted

Solution code:
import sys

def Integral(x):
    return x**2

def test(d):
    s=0
    n=int(600/d)
    for i in range(1,n):
        s+=Integral(d*i)*d
    return s

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

Submission status: Accepted

Solution code:
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

Submission status: Accepted

Solution code:
while 1:
    try:
        d=int(input())
        ans=0
        for i in range(600//d):
            ans+=d*d*d*i*i
        print(ans)
    except:break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# Integral
def sumby(d, S=0):
    for i in range(d, 600, d):
        S += pow(i,2) * d
    return S
d = int(input())
while 1:
    print(sumby(d))
    try: d = int(input())
    except EOFError: break

Submission status: Accepted

Solution code:
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])

Submission status: Runtime Error

Solution code:
import sys

for d in map(int, sys.stdin):
  sum = 0
  for x in range(d, 600, d):
    sum += (x**2)*d
  print s

Submission status: Runtime Error

Solution code:
while 1:
    dd = raw_input()
    d = int(dd)
    i = 1
    ans = 0
    while i * d < 600:
        ans += (i * d) * (i * d) * d
        i += 1
    print ans

Submission status: Runtime Error

Solution code:
import sys

a = []
for line in sys.stdin:
    a.append(line)

for n in a:
    num=int(n)
    x=0
    are=0
    while x<600:
         are+=(x**2)*num
         x+=num

print area

Submission status: Runtime Error

Solution code:
import sys

def f(x):
    return x ** 2

def integral(d):
    s = f(d) * d
    for i in range(600 // d - 1):
        s += f(d * (i + 1)) * d
    return s

lines = sys.stdin.readlines()
for line in lines:
    print(integral(line))

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
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

Submission status: Runtime Error

Solution code:
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))))

Submission status: Runtime Error

Solution code:
while True:
	d = int(input())
	ans = 0
	x = d
	while x < 600:
		ans += (x**2)*dx += d

Submission status: Runtime Error

Solution code:
while True:
	d = int(input())
	ans = 0
	x = d
	while x < 600:
		ans += (x**2)*dx += d
	print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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]

Submission status: Runtime Error

Solution code:
while True:
    d = int(raw_input())
    print reduce(lambda x,y:x+y,map(lambda x:d*x*x,range(d, 600, d)))

Submission status: Runtime Error

Solution code:
while True:
    try:
        d = int(raw_input())
    except EOFError:
        break
    print reduce(lambda x,y:x+y,map(lambda x:d*x*x,range(d, 600, d)))

Submission status: Runtime Error

Solution code:
while True:
    try:
        d = int(raw_input())
    except EOFError:
        break
    rects = map(lambda x:d*x*x,range(d, 600, d))
    print reduce(lambda x,y:x+y,rects)

Submission status: Runtime Error

Solution code:
while True:
	d = raw_input()
	if d != '':
		size = 0
		d = int(d)
		fd = d
		for x in range(1,600/d):
			size += d*(fd**2)
			fd += d
		print size
		continue
	else:
		break

Submission status: Runtime Error

Solution code:
import sys

for line in sys.stdin:
    result =, 0
    d = int(line)
    x = d
    while x < 600:
        result += x**2 * d
    print result

Submission status: Runtime Error

Solution code:
import sys
for d in sys.stdin:
  print sum([d*x*x for x in range(d,600,d)])

Submission status: Runtime Error

Solution code:
import sys
for d in int(sys.stdin):
  print sum([d*x*x for x in range(d,600,d)])

Submission status: Runtime Error

Solution code:
#include <stdio.h>

int main(void) {
	int i,d,S;
	while (scanf("%d",&d)!=EOF){
		S=0;
		for (i=0;i<600;i+=d){
			S+=d*pow(i,2);
		}
		printf("%d\n",S);
	}
	return 0;
}