Problem:
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

Solution (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)

Solution (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)

Solution (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)

Solution (Python):
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

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

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

Solution (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

Solution (Python):



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)

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

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

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

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

Solution (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)

Solution (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

Solution (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

Solution (Python):
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

Solution (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

Solution (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)

Solution (Python):



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

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

Solution (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)

Solution (Python):
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

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

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

Solution (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

Solution (Python):
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

Solution (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)

Solution (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')

Solution (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

Solution (Python):
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

Solution (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

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

Solution (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)

Solution (Python):
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)

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

Solution (Python):
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)

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

Solution (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)

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

Solution (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

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

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

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

Solution (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)

Solution (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)

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

Solution (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)

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

Solution (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)

Solution (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)

Solution (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

Solution (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

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

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

Solution (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)

Solution (Python):
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

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

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

Solution (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

Solution (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

Solution (Python):
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

Solution (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)

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

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

Solution (Python):
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()

Solution (Python):
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))

Solution (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

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

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

Solution (Python):

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

Solution (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])