


def       A_   (   _lowerCAmelCase     :					Optional[int] = 10_00       ):






     """simple docstring"""

     _a	,      _a    	=				1, 1
     _a    	=				[]
     for i in range(1,     n + 1       ):
          _a    	=				prev_numerator + 2 * prev_denominator
          _a    	=				prev_numerator + prev_denominator
          if len(str(UpperCamelCase__       )       ) > len(str(UpperCamelCase__       )       ):
               result.append(UpperCamelCase__       )
          _a    	=				numerator
          _a    	=				denominator

     return len(UpperCamelCase__       )


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



"""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() = }')