






'''simple docstring'''
from __future__ import annotations




def 		__SCREAMING_SNAKE_CASE       (	_UpperCamelCase				):


   """simple docstring"""




   if not nums:
      return 0
   lowercase_						:     List[Any]							     =  nums[0]
   lowercase_						:     int							     =  0
   for num in nums[1:]:
      lowercase_     ,		lowercase_						:     Dict							     =  (
          max_excluding + num,
          max(_UpperCamelCase    ,		_UpperCamelCase				),
      )
   return max(_UpperCamelCase    ,		_UpperCamelCase				)


if __name__ == "__main__":
 import doctest

 doctest.testmod()












'''simple docstring'''
def 		__SCREAMING_SNAKE_CASE       (	_UpperCamelCase = 100				):


   """simple docstring"""




   lowercase_						:     Dict							     =  n * (n + 1) * (2 * n + 1) / 6
   lowercase_						:     int							     =  (n * (n + 1) / 2) ** 2
   return int(square_of_sum - sum_of_squares				)


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




