'''

Karen Sommer

CS 521 Spring 2021

Assignment 2

Problem 24 and 78

'''


#Write a Python program that:
#accepts an integer n and computes the value of n + n * n + n * n * n + n * n * n * n.

print ('Enter a number')
n = int(input())

ans=n + n * n + n * n * n + n * n * n * n

print ('Result is: ', ans)
