"""simple docstring"""





import operator as op





def        a_  (   _lowerCAmelCase						:				List[Any]  ):





       '''simple docstring'''

       lowercase__    :	Optional[Any]     					=			[]
       lowercase__    :	Any     					=			lambda _lowerCAmelCase     ,				_lowerCAmelCase  : int(x / y  )  # noqa: E731 integer division operation
       lowercase__    :	str     					=			{
           '^': op.pow,
           '*': op.mul,
           '/': div,
           '+': op.add,
           '-': op.sub,
       }  # operators & their respective operation

       # print table header
       print('Symbol'.center(8  )     ,				'Action'.center(12  )     ,				'Stack'     ,				sep=' | '  )
       print('-' * (30 + len(_lowercase  ))  )

       for x in post_fix:
              if x.isdigit():  # if x in digit
                     stack.append(_lowercase  )  # append x to stack
                     # output in tabular format
                     print(x.rjust(8  )     ,				('push(' + x + ')').ljust(12  )     ,				','.join(_lowercase  )     ,				sep=' | '  )
              else:
                     lowercase__    :	Optional[int]     					=			stack.pop()  # pop stack
                     # output in tabular format
                     print(''.rjust(8  )     ,				('pop(' + b + ')').ljust(12  )     ,				','.join(_lowercase  )     ,				sep=' | '  )

                     lowercase__    :	Tuple     					=			stack.pop()  # pop stack
                     # output in tabular format
                     print(''.rjust(8  )     ,				('pop(' + a + ')').ljust(12  )     ,				','.join(_lowercase  )     ,				sep=' | '  )

                     stack.append(
                         str(opr[x](int(_lowercase  )     ,				int(_lowercase  )  )  )  )  # evaluate the 2 values popped from stack & push result to stack
                     # output in tabular format
                     print(
                         x.rjust(8  )     ,				('push(' + a + x + b + ')').ljust(12  )     ,				','.join(_lowercase  )     ,				sep=' | '     ,				)

       return int(stack[0]  )


if __name__ == "__main__":
       _UpperCamelCase     :		List[str]											=					input("\n\nEnter a Postfix Equation (space separated) = ").split(" ")
       print("\n\tResult = ", solve(Postfix))
"""simple docstring"""





import math





def        a_  (   _lowerCAmelCase						:				int = 100  ):





       '''simple docstring'''

       lowercase__    :	Union[str, Any]     					=			sum(i * i for i in range(1     ,				n + 1  )  )
       lowercase__    :	str     					=			int(math.pow(sum(range(1     ,				n + 1  )  )     ,				2  )  )
       return square_of_sum - sum_of_squares


if __name__ == "__main__":
       print(f'''{solution() = }''')

