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-----
2

-----Sample Output-----
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.
[{"code": "a = int(input())\n\nans = a + a**2 + a**3\n\nprint(ans)\n\n", "passed": true, "time": 0.33, "memory": 14120.0, "status": "done"}, {"code": "a = int(input())\n\nprint((a + a**2 + a**3))\n", "passed": true, "time": 0.15, "memory": 14316.0, "status": "done"}, {"code": "a = int(input())\n\n# print(a + a * a + a * a * a)\n\n# a\u306e2\u4e57\u30013\u4e57...\u306f\u3001a**2, a**3,...\u3068\u66f8\u304f\nprint((a + a**2 + a**3))\n", "passed": true, "time": 0.25, "memory": 14220.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a ** 2 + a ** 3)", "passed": true, "time": 0.3, "memory": 14216.0, "status": "done"}, {"code": "a = int(input())\nprint(a**3 + a**2 + a)", "passed": true, "time": 0.3, "memory": 14188.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.19, "memory": 14308.0, "status": "done"}, {"code": "val = int(input())\nprint(val + (val*val) + (val*val*val))", "passed": true, "time": 0.25, "memory": 14108.0, "status": "done"}, {"code": "temp = int(input())\nprint(temp + temp**2 + temp**3)", "passed": true, "time": 0.3, "memory": 14304.0, "status": "done"}, {"code": "a = int(input())\nans = a + a**2 + a**3\nprint(ans)", "passed": true, "time": 1.01, "memory": 14196.0, "status": "done"}, {"code": "a = int(input())\n\nb = a ** 2\nc = a ** 3\nans = a + b + c\n\nprint(ans)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "n=int(input())\nprint(format(n+n*n+n*n*n))", "passed": true, "time": 0.27, "memory": 14084.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "a = int(input())\nprint((int(a + a ** 2 + a ** 3)))\n", "passed": true, "time": 1.72, "memory": 14036.0, "status": "done"}, {"code": "a = int(input())\n\nprint(a+a**2+a**3)", "passed": true, "time": 0.23, "memory": 14224.0, "status": "done"}, {"code": "a = int(input())\nx = a+a**2+a**3\nprint(x)", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "a = int(input())\n\ntotal = a + (a * a) + (a * a * a)\nprint(total)", "passed": true, "time": 0.25, "memory": 14120.0, "status": "done"}, {"code": "a = int(input())\nprint(a+a*a+a*a*a)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "a = int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "n = int(input())\nprint(n + n**2 + n**3)", "passed": true, "time": 0.14, "memory": 14228.0, "status": "done"}, {"code": "a = int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a*a+a*a*a)", "passed": true, "time": 0.15, "memory": 14088.0, "status": "done"}, {"code": "a = int(input())\nprint(a+(a**2)+(a**3))", "passed": true, "time": 0.14, "memory": 14128.0, "status": "done"}, {"code": "x = int(input())\nprint(x+(x**2)+(x**3))", "passed": true, "time": 0.15, "memory": 14232.0, "status": "done"}, {"code": "a = int(input())\nans = a + a**2 + a**3\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "a = int(input())\n\nprint(a*(1+a+a**2))", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "a = int(input())\n\nb = int(a ** 2)\n\nc = int(a ** 3)\n\nprint((a+b+c))\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "a = int(input())\n\na = a + (a**2) + (a**3)\n\nprint(a)", "passed": true, "time": 0.23, "memory": 14196.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a*a + a*a*a)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "a = int(input())\n\nprint((a+a*a+a*a*a))\n\n", "passed": true, "time": 0.14, "memory": 14368.0, "status": "done"}, {"code": "\na = int(input())\nprint(a + a**2 + a**3)", "passed": true, "time": 0.23, "memory": 14120.0, "status": "done"}, {"code": "a = int(input())\nprint(int(a+a**2+a**3))", "passed": true, "time": 0.14, "memory": 14068.0, "status": "done"}, {"code": "A=int(input())\nB=A+A**2+A**3\nprint(B)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "a = int(input())\nprint(a * (a**2 + a + 1))", "passed": true, "time": 0.15, "memory": 14116.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "a = int(input())\n\nprint(a+a*a+a*a*a)", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "a = int(input())\nx = a + a**2 + a**3\nprint(x)", "passed": true, "time": 0.19, "memory": 14248.0, "status": "done"}, {"code": "num = int(input())\nanswer = num + (num ** 2) + (num ** 3)\nprint(answer)", "passed": true, "time": 0.19, "memory": 14064.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a**2 + a**3)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "d = int(input())\n\nprint(d + d**2 + d**3)", "passed": true, "time": 0.24, "memory": 14304.0, "status": "done"}, {"code": "a = int(input())\n\nprint((int(a + a**2 + a**3)))\n", "passed": true, "time": 0.18, "memory": 14016.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a ** 2 + a ** 3 )", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "a = input()\nint_a = int(a)\nprint((int_a + int_a**2 + int_a**3))\n", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "x = int(input())\nprint(x + x**2 + x**3)", "passed": true, "time": 0.25, "memory": 14080.0, "status": "done"}, {"code": "a = int(input())\nprint((a+a*a+a*a*a))\n", "passed": true, "time": 0.23, "memory": 14224.0, "status": "done"}, {"code": "a = int(input())\n\nans = a + a * a + a * a * a\nprint(ans)\n", "passed": true, "time": 0.15, "memory": 14176.0, "status": "done"}, {"code": "n = int(input())\n\ntotal = n + n**2 + n**3\n\nprint(total)", "passed": true, "time": 0.15, "memory": 14300.0, "status": "done"}, {"code": "def main():\n    a = int(input())\n    print((int(a + a ** 2 + a ** 3)))\n    return\n\n\ndef __starting_point():\n    main()\n\n__starting_point()", "passed": true, "time": 0.33, "memory": 14132.0, "status": "done"}, {"code": "import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect\n#from operator import itemgetter\n#from heapq import heappush, heappop\n#import numpy as np\n#import sympy\n#from scipy.sparse.csgraph import breadth_first_order, depth_first_order, shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson\n#from scipy.sparse import csr_matrix\nfrom decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN\nimport sys\n\nsys.setrecursionlimit(10**7)\ninf = 10**20\nmod = 10**9 + 7\n\nstdin = sys.stdin\n\nni = lambda: int(ns())\nnf = lambda: float(ns())\nna = lambda: list(map(int, stdin.readline().split()))\nnb = lambda: list(map(float, stdin.readline().split()))\nns = lambda: stdin.readline().rstrip()  # ignore trailing spaces\n\na = ni()\nprint(a + a ** 2 + a ** 3)", "passed": true, "time": 0.15, "memory": 14412.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a**2 + a**3)", "passed": true, "time": 0.24, "memory": 14096.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a**2 + a**3) ", "passed": true, "time": 0.15, "memory": 14192.0, "status": "done"}, {"code": "\na = int(input())\n\nprint((a + a ** 2 + a ** 3))\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "N = int(input())\nprint(N+N**2+N**3)", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a*a+a*a*a)", "passed": true, "time": 0.15, "memory": 14180.0, "status": "done"}, {"code": "a = int(input())\n\nprint(a + a**2 + a**3)", "passed": true, "time": 0.24, "memory": 14224.0, "status": "done"}, {"code": "a = int(input())\n\nprint(a + a**2 + a**3)", "passed": true, "time": 0.14, "memory": 14188.0, "status": "done"}, {"code": "A=int(input())\nprint(A+A*A+A*A*A)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "a = int(input())\nA = a + a*a + a*a*a\nprint((int(A)))\n", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "n=int(input())\nprint(n+n**2+n**3)", "passed": true, "time": 0.23, "memory": 14304.0, "status": "done"}, {"code": "a=int(input())\nprint((a+a**2+a**3))\n", "passed": true, "time": 0.23, "memory": 14104.0, "status": "done"}, {"code": "a = int(input())\n\nprint((a + a ** 2 + a ** 3))\n", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a*a+a*a*a)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a**2 + a**3)", "passed": true, "time": 0.14, "memory": 14100.0, "status": "done"}, {"code": "a = int(input())\nx = a + a**2 + a**3\nprint(x)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "a = int(input())\n\nprint(int(a+a**2+a**3))", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "a=int(input())\nprint((a+a**2+a**3))\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "a=int(input());print(a+a*a+a**3)", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "a = int(input())\nans = a + a**2 + a**3\nprint(ans)\n\n", "passed": true, "time": 0.23, "memory": 14192.0, "status": "done"}, {"code": "x = input()\na = int(x)\n\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "a=int(input())\nprint(a*(1+a*(1+a)))", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "a = int(input())\nprint((int(a+a*a+a*a*a)))\n", "passed": true, "time": 0.15, "memory": 14220.0, "status": "done"}, {"code": "a = int(input())\nprint((a + a*a + a*a*a))\n", "passed": true, "time": 0.14, "memory": 14364.0, "status": "done"}, {"code": "a = int(input())\nprint((a+a**2+a**3))\n", "passed": true, "time": 0.14, "memory": 14132.0, "status": "done"}, {"code": "a = int(input())\nprint((a + a ** 2 + a ** 3))\n", "passed": true, "time": 0.14, "memory": 14192.0, "status": "done"}, {"code": "a = int(input())\nprint((a+a**2+a**3))\n", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.74, "memory": 14100.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a**2 + a**3)", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a ** 2 + a **3)", "passed": true, "time": 0.23, "memory": 14084.0, "status": "done"}, {"code": "m = int(input())\nn = m +(m ** 2) + (m ** 3)\nprint(n)", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.23, "memory": 14300.0, "status": "done"}, {"code": "a = int(input())\nprint((a + a*a + a*a*a))\n", "passed": true, "time": 0.14, "memory": 14368.0, "status": "done"}, {"code": "a = int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14096.0, "status": "done"}, {"code": "a = int(input())\n\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "a = int(input())\nprint((a + a ** 2 + a ** 3))\n", "passed": true, "time": 0.14, "memory": 14196.0, "status": "done"}, {"code": "N = int(input())\nprint(N + N ** 2 + N ** 3)", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "a = int(input())\nres = a + a**2 + a**3\nprint(res)", "passed": true, "time": 0.14, "memory": 14112.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a**2 + a**3)", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "a=int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "a = int(input())\n\nprint((a+a**2+a**3))\n", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "a = int(input())\n\nans = 0\n\nfor i in range(1,4):\n    ans += a ** i\n\nprint(ans)", "passed": true, "time": 0.23, "memory": 14240.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a**2 + a**3)", "passed": true, "time": 0.3, "memory": 14100.0, "status": "done"}, {"code": "a = int(input())\n\nprint(int(a + a**2 + a**3))", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "a = int(input())\nprint(a+a**2+a**3)", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "num= int(input())\na=num*num\nb=num*a\nprint(num+a+b)", "passed": true, "time": 0.14, "memory": 14156.0, "status": "done"}, {"code": "a = int(input())\nprint((a+a*a+a*a*a))\n", "passed": true, "time": 0.14, "memory": 14348.0, "status": "done"}, {"code": "a = int(input())\nprint(a + a ** 2 + a ** 3)", "passed": true, "time": 0.14, "memory": 14244.0, "status": "done"}, {"code": "import math\nimport itertools\nimport collections\nimport bisect\nimport heapq\n \ndef IN(): return int(input())\ndef sIN(): return input()\ndef MAP(): return map(int,input().split())\ndef LMAP(): return list(map(int,input().split()))\ndef TATE(n): return [input() for i in range(n)]\nMOD = 10**9 + 7\n \na = IN()\nprint(a + a**2 + a**3)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "a = int(input())\nprint(int(a + a**2 + a**3))", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}]