


"""simple docstring"""






def       A_   (   _lowerCAmelCase     :					int       ):






     """simple docstring"""

     if num < 0:
          return False

     _a    	=				num
     _a    	=				0
     while num > 0:
          _a    	=				rev_num * 10 + (num % 10)
          num //= 10

     return num_copy == rev_num


if __name__ == "__main__":
   import doctest

   doctest.testmod()



"""simple docstring"""






def       A_   (   _lowerCAmelCase     :					int = 10**12       ):






     """simple docstring"""

     _a    	=				1
     _a    	=				0

     _a    	=				1
     _a    	=				1

     while numerator <= 2 * min_total - 1:
          prev_numerator += 2 * numerator
          numerator += 2 * prev_numerator

          prev_denominator += 2 * denominator
          denominator += 2 * prev_denominator

     return (denominator + 1) // 2


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