




def 							_A       (						lowerCAmelCase_					: int      ):
     """simple docstring"""

     return str(lowerCAmelCase_      ) == str(lowerCAmelCase_      )[::-1]



def 							_A       (						lowerCAmelCase_					: int      ):
     """simple docstring"""

     return int(lowerCAmelCase_      ) + int(str(lowerCAmelCase_      )[::-1]      )



def 							_A       (						lowerCAmelCase_					: int = 1_0000      ):
     """simple docstring"""

     lowerCAmelCase__          =			[]
     for num in range(1       ,    lowerCAmelCase_      ):
          lowerCAmelCase__          =			0
          lowerCAmelCase__          =			num
          while iterations < 50:
               lowerCAmelCase__          =			sum_reverse(lowerCAmelCase_      )
               iterations += 1
               if is_palindrome(lowerCAmelCase_      ):
                    break
          else:
               lychrel_nums.append(lowerCAmelCase_      )
     return len(lowerCAmelCase_      )


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












from math import pi, sqrt



def 							_A       (						lowerCAmelCase_					: float      ):
     """simple docstring"""

     if num <= 0:
          raise ValueError("math domain error"      )
     if num > 171.5:
          raise OverflowError("math range error"      )
     elif num - int(lowerCAmelCase_      ) not in (0, 0.5):
          raise NotImplementedError("num must be an integer or a half-integer"      )
     elif num == 0.5:
          return sqrt(lowerCAmelCase_      )
     else:
          return 1.0 if num == 1 else (num - 1) * gamma(num - 1      )



def 							_A       (						):
     """simple docstring"""

     assert gamma(0.5      ) == sqrt(lowerCAmelCase_      )
     assert gamma(1      ) == 1.0
     assert gamma(2      ) == 1.0


if __name__ == "__main__":
     from doctest import testmod

     testmod()
     UpperCamelCase								=					1.0
     while num:
          UpperCamelCase								=					float(input('Gamma of: '))
          print(F"""gamma({num}) = {gamma(num)}""")
          print('\nEnter 0 to exit...')
