<gh_stars>0
#Buatlah fungsi utk f(x)= x^3+5x^2-15

def f(x):
    return x**3 + 5 * x**2 - 15

print(f(int(input())))



#Buatlah fungsi utk f(x)= x^3+5x^2-15

def f(x):
    return x**3 + 5 * x**2 - 15

print(f(int(input())))
#Buatlah fungsi utk f(x)= x^3+5x^2-15