output_description: Print the value a + a^2 + a^3 as an integer.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      a
attempt: import sys
  #import string
  #from collections import defaultdict, deque, Counter
  #import bisect
  #import heapq
  #import math
  #from itertools import accumulate
  #from itertools import permutations as perm
  #from itertools import combinations as comb
  #from itertools import combinations_with_replacement as combr
  #from fractions import gcd
  #import numpy as np
  
  stdin = sys.stdin
  sys.setrecursionlimit(10 ** 7)
  MIN = -10 ** 9
  MOD = 10 ** 9 + 7
  INF = float("inf")
  IINF = 10 ** 18
  
  def solve():
      a = int(stdin.readline().rstrip())
      #A, B, C = map(int, stdin.readline().rstrip().split())
      #l = list(map(int, stdin.readline().rstrip().split()))
      #numbers = [[int(c) for c in l.strip().split()] for l in sys.stdin]
      #word = [stdin.readline().rstrip() for _ in range(n)]
      #number = [[int(c) for c in stdin.readline().rstrip()] for _ in range(n)]
      #zeros = [[0] * w for i in range(h)]
      print(a + a**2 + a**3)
  
  
  if __name__ == '__main__':
      solve()
  
problem_description: Statement
  
  Given an integer a as input, print the value a + a^2 + a^3.
samples: [{"input": "2", "output": "14\n    \n\nWhen a = 2, we have a + a^2 + a^3 = 2 + 2^2 + 2^3 = 2 + 4 + 8 = 14.\n\nPrint the answer as an input. Outputs such as `14.0` will be judged as\nincorrect.\n\n* * *"}, {"input": "10", "output": "1110"}]