



'''simple docstring'''


from __future__ import annotations







def 				__lowerCamelCase				(   A__    )       ->	int:






   """simple docstring"""
   if not nums:
      return 0
   UpperCamelCase					=  nums[0]
   UpperCamelCase					=  0
   for num in nums[1:]:
      UpperCamelCase				,      UpperCamelCase					=  (
          max_excluding + num,
          max(A__    ,						A__    ),
      )
   return max(A__    ,						A__    )


if __name__ == "__main__":
   import doctest

   doctest.testmod()






'''simple docstring'''


def 				__lowerCamelCase				(   A__ = 10**9    )       ->	int:






   """simple docstring"""
   UpperCamelCase					=  1
   UpperCamelCase					=  2

   UpperCamelCase					=  0
   UpperCamelCase					=  0
   UpperCamelCase					=  0
   while perimeter <= max_perimeter:
      perimeters_sum += perimeter

      prev_value += 2 * value
      value += prev_value

      UpperCamelCase					=  2 * value + 2 if i % 2 == 0 else 2 * value - 2
      i += 1

   return perimeters_sum


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

