def f(x):

    return pow(x, 2)



while True:

    try:

        d = int(eval(input()))

    except:

        break

    print((sum(f(x) * d for x in range(d, 600, d))))
while True:

    try:

        d = int(eval(input()))

    except:

        break

    print((sum(d * x**2 for x in range(d, 600, d))))



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


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

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

-def f(x): -    return pow(x, 2) - - -    print((sum(f(x) * d for x in range(d, 600, d)))) +    print((sum(d * x**2 for x in range(d, 600, d))))