Problem:
 Score : 100 points    Problem Statement Given an integer a as input, print the value a + a^2 + a^3 .      Constraints  1 \leq a \leq 10  a is an integer.         Input Input is given from Standard Input in the following format:  a       Output Print the value a + a^2 + a^3 as an integer.        Sample Input 1 2      Sample Output 1 14  When a = 2 , we have a + a^2 + a^3 = 2 + 2^2 + 2^3 = 2 + 4 + 8 = 14 .  Print the answer as an input. Outputs such as 14.0 will be judged as incorrect.       Sample Input 2 10      Sample Output 2 1110

Solution (Python):
a = int(input())
print(a + a ** 2 + a ** 3)

Solution (Python):
a = int(input())
print(a+a*a+a*a*a)

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
a = int(input())

print(a + a ** 2 + a ** 3)

Solution (Python):
a =int(input())
print(a + a**2 + a**3)

Solution (Python):
a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 5 * 10**6


def f(x):
    return x


M = 10**5
arr = list(range(M))
for i in range(N):
    t = (i + i * i - i) % M  
    b = arr[t]  
    b = f(b)  


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 5 * 10**8


def f(x):
    return x


M = 10**5
arr = list(range(M))
for i in range(N):
    t = (i + i * i - i) % M  
    b = arr[t]  
    b = f(b)  


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**8


def f(x):
    return x


M = 10**5
arr = list(range(M))
for i in range(N):
    t = (i + i * i - i) % M  
    b = arr[t]  
    b = f(b)  


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**7


def f(x):
    return x


M = 10**5
arr = list(range(M))
for i in range(N):
    t = (i + i * i - i) % M  
    b = arr[t]  
    b = f(b)  


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 4 * 10**6


def f(x):
    return x


M = 10**5
arr = list(range(M))
for i in range(N):
    t = (i + i * i - i) % M  
    b = arr[t]  
    b = f(b)  


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**6


def f(x):
    return x


M = 10**5
arr = list(range(M))
for i in range(N):
    t = (i + i * i - i) % M  
    b = arr[t]  
    b = f(b)  


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**7

M = 10**5
arr = list(range(M))
for i in range(N):
    t = arr[100]


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**7

arr = [0]
for i in range(N):
    t = arr[0]


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**7

M = 10**5
arr = list(range(M))
for i in range(N):
    t = arr[i % M]


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**7









for i in range(N):
    pass


a = int(input())
print(a + a**2 + a**3)

Solution (Python):
N = 10**7

M = 10**5
arr = list(range(M))


def f(x):
    return x


for i in range(N):
    b = arr[i % M]
    b = f(b)

a = int(input())
print(a + a**2 + a**3)

Solution (Python):
a = int(input())
print(a + a*a + a*a*a)

Solution (Python):
def main():
    a = int(input())

    print(a + a**2 + a**3)


if __name__ == "__main__":
    main()

Solution (Python):
a=int(input())
print(a+a*a+a*a*a)

Solution (Python):
a=int(input())
print(a+a*a+a*a*a)

Solution (Python):
a=int(input());print(a+a**2+a**3)

Solution (Python):
a=int(input())
print(a**3+a**2+a)

Solution (Python):
a = int(input())

print(a + a*a + a*a*a)

Solution (Python):
a = int(input())
calc = a + a**2 + a**3
print(calc)

Solution (Python):
a = int(input())
print(a*a*a+a*a+a)

Solution (Python):
a = int(input())
print(a+a*a+a*a*a)

Solution (Python):
a=int(input())
print(a+a**2+a**3)

Solution (Python):
a = int(input())
print(str(a+a**2+a**3))

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
a = int(input())
print(a + a**2 + a**3)

Solution (Python):
a = int(input())

print(a + a**2 + a**3)

Solution (Python):
a=int(input());print(a+a*a+a*a*a)

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
a=int(input())

print(a+a*a+a*a*a)

Solution (Python):
a = int(input())

print(a + a**2 + a**3)

Solution (Python):
i = int(input())
print(i + i*i + i*i*i)

Solution (Python):
a = int(input())
s = a
s = s * a + a
s = s * a + a
print(s)

Solution (Python):
a = int(input().strip())

print(int(a**3+a**2+a))

Solution (Python):
a = int(input())

output = a+a**2+a**3

print(output)

Solution (Python):
num = int(input())
print(num + num**2 + num**3)

Solution (Python):
a=int(input())
print(a+a**2+a**3)

Solution (Python):
n = int(input())
n += n**2 + n **3
print(n)

Solution (Python):
a = int(input())
print(a + a ** 2 + a ** 3)

Solution (Python):
a=int(input())
print(a+pow(a,2)+pow(a,3))

Solution (Python):
a = int(input())
print(a + a**2 + a**3)

Solution (Python):
A = int(input())

print(A+A*A+A*A*A)

Solution (Python):
a = int(input())
b = a*a*a+a*a+a
print(int(b))

Solution (Python):
a = int(input())

print(a + a**2 + a**3)

Solution (Python):
a = int(input())
print(a + a * a + a ** 3)

Solution (Python):
a = int(input())
print(a + a * a + a * a * a)

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
a=int(input())
print(a**2+a+a**3)

Solution (Python):
a=int(input())
print(a+a**2+a**3)

Solution (Python):
def main():
    a = int(input())
    print(a + a**2 + a**3)


if __name__ == '__main__':
    main()

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):

a = int(input())
print(a+a**2+a**3)

Solution (Python):
a = int(input())
print(a+a**2+ a**3)

Solution (Python):
a=int(input())
ans=a
for i in range(2,4):
    ans+=a**i
print(ans)

Solution (Python):
a = int(input())
print(a + a ** 2 + a ** 3);

Solution (Python):
a=int(input())
print(a+a*a+a*a*a)

Solution (Python):
x = int(input())
print(x + x**2 + x**3)

Solution (Python):
def main():
    a = int(input())

    ans = a

    ans *= a
    ans += a

    ans *= a
    ans += a

    print(ans)


if __name__ == '__main__':
    main()

Solution (Python):
a = int(input())
b = a + a*a + a*a*a
print(int(b))

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
import sys

a = int(input())
print(a+a**2+a**3)

Solution (Python):
a=int(input())

print(a + a**2 + a**3)

Solution (Python):
a = int(input())

print(a + a**2 + a**3)

Solution (Python):
i = int(input())
print(i + i**2 + i**3)

Solution (Python):
from sys import stdin
input = stdin.readline

a = int(input().rstrip())
a2 = a * a
a3 = a * a * a

print(a + a2 + a3)

Solution (Python):
a = int(input())
print(a + a**2 + a**3)

Solution (Python):
a = int(input())
print(a + a**2 + a**3)

Solution (Python):
a = int(input())

print(a + a**2 + a**3)

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
n=int(input())
print(n+n**2+n**3)

Solution (Python):
a = int(input())
print(a + a**2 + a**3)

Solution (Python):
a = int(input())
print(a+a**2+a**3)

Solution (Python):
a = int(input())

print(a+a**2+a**3)

Solution (Python):
x=int(input())
print(x+x**2+x**3)

Solution (Python):
a = int(input())
ans = a * (1 + a + a * a)
print(ans)