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



Sample input:
2


Sample output:
14

Submission status: Wrong Answer

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
# from fractions import gcd
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from functools import reduce
from bisect import bisect_left, insort_left
from heapq import heapify, heappush, heappop

INPUT = lambda: sys.stdin.readline().rstrip()
INT = lambda: int(INPUT())
MAP = lambda: map(int, INPUT().split())
S_MAP = lambda: map(str, INPUT().split())
LIST = lambda: list(map(int, INPUT().split()))
S_LIST = lambda: list(map(str, INPUT().split()))
ZIP = lambda: zip(*(MAP() for _ in range(n)))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7


def main():
    a = 0
    print(a + a ** 2 + a **3)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())

print(N + N ^ 2 + N ^ 3)

Submission status: Time Limit Exceeded

Solution code:
N = 10**9


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)

Submission status: Time Limit Exceeded

Solution code:
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)

Submission status: Time Limit Exceeded

Solution code:
N = 10**8
for i in range(N):
    b = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

print(a*(1+a+a**2))

Submission status: Accepted

Solution code:
d = int(input())

print(d + d**2 + d**3)

Submission status: Accepted

Solution code:
x = input()
a = int(x)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
num = int(input())

print(num + num ** 2 + num ** 3)

Submission status: Accepted

Solution code:
a=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
input = stdin.readline


def solve():
    a = int(input())
    print(a+a**2+a**3)







if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

A=a+a*a+a*a*a
print(A)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

A = a + a**2 + a**3

print(A)

Submission status: Accepted

Solution code:
a = int(input())
print(a*((a+1)*(a+1)-a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    a = int(input())
    print(a + a**2 + a**3)
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
a = int(input(""))
s=a**2
t=a**3
print(a+s+t)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def sep():
    return map(int,input().strip().split(" "))
def lis():
    return list(sep())

n=int(input())
print(n + n*n + n*n*n)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

ans = a + a**2 + a**3

print(ans)

Submission status: Accepted

Solution code:
a = int(input())

sum = a + (a*a) + (a*a*a)
print(sum)

Submission status: Accepted

Solution code:
n = int(input())

n = n + n ** 2 + n ** 3

print(n)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a = int(input())
ans = a + a*a + a*a*a

print(int(ans))

Submission status: Accepted

Solution code:
a=int(input())

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

Submission status: Accepted

Solution code:
#A問題

a = int(input())

ans = a + a**2 + a**3

print(ans)

Submission status: Accepted

Solution code:
a=int(input())
print(a+a**2*(a+1))

Submission status: Accepted

Solution code:
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    a = int(readline())
    print(a + a ** 2 + a ** 3)


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 6)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")
al = "abcdefghijklmnopqrstuvwxyz"
AL = al.upper()

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

Submission status: Accepted

Solution code:
# import math
# import statistics
# import itertools
a=int(input())
#b,c=int(input()),int(input())
# c=[]
# for i in a:
#     c.append(int(i))
# e1,e2,e3,e4 = map(int,input().split())
#f = list(map(int,input().split()))
# g = [input() for _ in range(a)]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
ans = a + a**2 + a**3

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

x = a + a**2 + a**3

print(x)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

ans = 0

for i in range(1, 4):
    ans += (a ** i)

print(ans)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
# from collections import Counter,defaultdict,deque
# from itertools import permutations, combinations
# from heapq import heappop, heappush
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplt(n): return [tuple(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

a = int(input())
print('hello', file=sys.stderr)
print(a + a * a + a * a * a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python3
a = int(input())
ans = a + a**2 + a**3
print(ans)

Submission status: Accepted

Solution code:
def main(a):
    return ((a + 1)*a + 1)*a

if __name__ == '__main__':
    a = int(input())
    ans = main(a)
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())

print(n + n**2 + n**3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
print(N+N*N+N*N*N)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
N = int(input().rstrip())
N_2=pow(N,2)
print(N*(1+N+N_2))

Submission status: Accepted

Solution code:
a=int(input());print(a-~a*a*a)

Submission status: Accepted

Solution code:
N = int(input())

print(N + N**2 + N**3)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
N = int(input())
sum = N + N**2 + N**3
print(sum)

Submission status: Accepted

Solution code:
N = int(input())
sum = N + N*N + N*N*N
print(sum)

Submission status: Accepted

Solution code:
N = int(input())
ans = N + (N**2) + (N**3)
print(ans)

Submission status: Accepted

Solution code:
a=int(input());print(a-~a*a**2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

a = int(input().split()[0])
ans = int(a + a ** 2 + a ** 3)

print(ans)

Submission status: Accepted

Solution code:
def resolve():
    a = int(input())
    print(a+a*a+a*a*a)

if '__main__' == __name__:
    resolve()

Submission status: Accepted

Solution code:
# https://atcoder.jp/contests/abc172/tasks/abc172_a

a = int(input())

ans = a + a ** 2 + a ** 3

print(ans)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
print(a*(a**2 + a +1))

Submission status: Accepted

Solution code:
def resolve():
    a = int(input())
    print(a + a ** 2 + a ** 3)
resolve()

Submission status: Accepted

Solution code:
def solve(string):
    a = int(string)
    return str(a + a**2 + a**3)                                                                                         

if __name__ == '__main__':
    import sys
    print(solve(sys.stdin.read().strip()))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#172 A
A = int(input())
print(A + A**2 + A**3)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
result = a + (a*a) + (a*a*a)
print(result)

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
    a = int(input())
    print(a+a**2+a**3)

if __name__=='__main__':
    main()

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())

A = a
B = pow(a,2)
C = pow(a,3)

print(A+B+C)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
print((lambda x:x+x**2+x**3)(int(input())))

Submission status: Accepted

Solution code:
import math
import sys
import os
from operator import mul

sys.setrecursionlimit(10**7)

def _S(): return sys.stdin.readline().rstrip()
def I(): return int(_S())
def LS(): return list(_S().split())
def LI(): return list(map(int,LS()))

if os.getenv("LOCAL"):
    inputFile = basename_without_ext = os.path.splitext(os.path.basename(__file__))[0]+'.txt'
    sys.stdin = open(inputFile, "r")
INF = float("inf")


a = I()
ans = a * (1+a+a**2)

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
 
l = a + a**2 + a**3

print(l)

Submission status: Accepted

Solution code:
if __name__ == "__main__":
    a = int(input())
    ans = a + a**2 + a**3
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
nn = n**2
nnn = n**3
print(n+nn+nnn)

Submission status: Accepted

Solution code:
a=int(input())

ans = a + a**2 + a**3

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a = int(input())
print(a + int(math.pow(a, 2)) + int(math.pow(a, 3)))

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())
a = a//1
print(a+a**2+a**3)

Submission status: Accepted

Solution code:

a = int(input())

print(a+pow(a,2)+pow(a,3))

Submission status: Accepted

Solution code:
S = int(input())
W = S+S**2+S**3
print(W)

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(1000000)
from collections import deque

# 整数の入力
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
#a問題
n=int(input())
print(n+(n**2)+(n**3))

Submission status: Accepted

Solution code:
a=int(input())

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

Submission status: Accepted

Solution code:
a = int(input())
if a == 1:
  print(3)
else:
  print(int((a**3-1)*a/(a-1)))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())
print(a*((a+1)**2-a))

Submission status: Accepted

Solution code:
def solver(a):
    return a + a ** 2 + a ** 3
a = int(input())
print(solver(a))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a = int(input())
r = int(a+a**2+a**3)
print(r)

Submission status: Accepted

Solution code:
a = int(input().rstrip())
ans = lambda a: int(a + a**2 + a**3)
print(ans(a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = int(input())

print (x+x**2+x**3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

b = a+a**2+a**3

print(b)

Submission status: Accepted

Solution code:
n = int(input())
print(n*(1+n+n*n))

Submission status: Accepted

Solution code:
a = int(input())
c = a * a
d = a * a * a
print(a+c+d)

Submission status: Accepted

Solution code:
N = int (input ())
print (N + N**2 + N**3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input().rstrip())
r = a + (a * a) + (a * a * a)
print(r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
from itertools import chain
# form bisect import bisect_left, bisect_right, insort_left, insort_right
# from collections import Counter
# import numpy as np


def solve(a: int):
    return a + a*a + a*a*a

def main():
    tokens = chain(*(line.split() for line in sys.stdin))
    a = int(next(tokens))  # type: int
    answer = solve(a)
    print(answer)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a=int(input())
if 1<=a<=10:
    print(a+a**2+a**3)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    a = int(input())
    print(a + a**2 + a**3)

if __name__ == "__main__":
    solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())
print(n+n*n+n*n*n)

Submission status: Accepted

Solution code:
a = int(input())
print(a*(1+a+a**2))

Submission status: Accepted

Solution code:
# ABC172 A-Calc
a = int(input())

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

Submission status: Accepted

Solution code:
n = int(input())
print(n + (n * n) + (n * n * n))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
user_input = int(input())

print(user_input + user_input**2 + user_input**3)

Submission status: Accepted

Solution code:
a = int(input())

ans = a + a ** 2 + a ** 3

print(ans)

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
X = int(input())
print(X + X**2 + X**3)

Submission status: Accepted

Solution code:
a = int(input())
n = a + a*a + a*a*a
print(n)

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:

a = int(input())

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

Submission status: Accepted

Solution code:
func = lambda a: a+a**2+a**3
print(func(int(input().rstrip())))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())

print(A+A**2+A**3)

Submission status: Accepted

Solution code:

import sys
input = sys.stdin.readline

def inp():
    return(int(input()))



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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
ins = lambda: input().rstrip()
ini = lambda: int(input().rstrip())
inm = lambda: map(int, input().split())
inl = lambda: list(map(int, input().split()))

n = ini()
print(n + n**2 + n**3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())
b=a+a**2+a**3
c=round(b)
print(c)

Submission status: Accepted

Solution code:
import sys
a = int(input())
print (a+a**2+a**3)

Submission status: Accepted

Solution code:
N = int(input()) 

print(N + N**2 + N**3)
exit()

Submission status: Accepted

Solution code:
a = int(input())
a2 = a * a
a3 = a2 * a

print(a + a2 + a3)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

s = a + a**2 + a**3

print(int(s))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())

print(N + N ** 2 + N ** 3)

Submission status: Accepted

Solution code:
a = int(input())
s = a*a
c = a*a*a
t = a+s+c
print(int(t))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#import sys
#import numpy as np
import math
#from fractions import Fraction
import itertools
from collections import deque
from collections import Counter
import heapq
#from fractions  import gcd
#input=sys.stdin.readline
import bisect
a=int(input())
print(a+a**2+a**3)

Submission status: Accepted

Solution code:

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = int(input())
print(i*(1+i*(1+i)))

Submission status: Accepted

Solution code:
a = int(input())
b = a ** 2
c = a ** 3
print(a+b+c)

Submission status: Accepted

Solution code:
#A_Calc
A = int(input())
#計算
out = int(A + A**2 + A**3)
# 出力
print(out)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n=int(input())

print(n+n*n+n*n*n)

Submission status: Accepted

Solution code:
a = int(input())

ans = 0
for i in range(3):
    ans += a**(i+1)

print(ans)

Submission status: Accepted

Solution code:
from sys import stdin
input = stdin.readline
ri = lambda : int(input())
ril = lambda : list(map(int, input().split()))

def main():
  a = ri()
  a = a * (a * (a + 1) + 1)
  print(a)


if __name__ == '__main__':
  main()

Submission status: Accepted

Solution code:
a=int(input())

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

Submission status: Accepted

Solution code:
# Calc
a = int(input())
print(a + a**2 + a**3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
ans = 0

for i in range(1, 4):
    ans += a**i

print(ans)

Submission status: Accepted

Solution code:
a = int(input())
ans = 0

for i in range(1, 4):
    ans += a**i

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
a = int(input())

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

Submission status: Accepted

Solution code:
#ABC172-A
a = int(input())
print(a**2 + a + a**3)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = int(input())
print(A+A**2+A**3)

Submission status: Accepted

Solution code:
def Qa():
    a = int(input())
    print(a + a ** 2 + a ** 3)

if __name__ == '__main__':
    Qa()

Submission status: Accepted

Solution code:
n = int(input())
print((n + n ** 2 + n ** 3) //1)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
N = 10**7

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

# 答え
a = int(input())
print(a + a**2 + a**3)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
N = 10**7

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


# def f(x):
#     return x


for i in range(N):
    pass

# 答え
a = int(input())
print(a + a**2 + a**3)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

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

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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