
"""simple docstring"""

from __future__ import annotations
def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


		if not nums:
				return 0
		lowerCamelCase					:      Optional[Any]          =   nums[0]
		lowerCamelCase					:      Optional[Any]          =   0
		for num in nums[1:]:
				lowerCamelCase					:      Optional[Any]          =   (
				    max_excluding + num,
				    max(a_,						a_      ),
				)
		return max(a_,						a_      )


if __name__ == "__main__":
					import doctest

					doctest.testmod()








"""simple docstring"""

def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


		return str(a_      ) == str(a_      )[::-1]
def 		UpperCAmelCase (		a_      ):





		'''simple docstring'''


		return int(a_      ) + int(str(a_      )[::-1]      )
def 		UpperCAmelCase (		a_ = 1_0000      ):





		'''simple docstring'''


		lowerCamelCase					:      Optional[Any]          =   []
		for num in range(1,						a_      ):
				lowerCamelCase					:      List[str]          =   0
				lowerCamelCase					:      Union[str, Any]          =   num
				while iterations < 50:
						lowerCamelCase					:      Optional[int]          =   sum_reverse(a_      )
						iterations += 1
						if is_palindrome(a_      ):
								break
				else:
						lychrel_nums.append(a_      )
		return len(a_      )


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






