'''simple docstring'''

import sys

sys.set_int_max_str_digits(0)  # type: ignore



def 				UpperCamelCase__      (      a__   ):


						'''simple docstring'''






						_lowerCAmelCase					    =[0] * 1_1
						_lowerCAmelCase					    =[0] * 1_1

						# mark last 9 numbers
						for _ in range(9   ):
												_lowerCAmelCase					    =1
												_lowerCAmelCase					    =number // 1_0
						# flag
						_lowerCAmelCase					    =True

						# check last 9 numbers for pandigitality

						for x in range(9   ):
												if not check_last[x + 1]:
																		_lowerCAmelCase					    =False
						if not f:
												return f

						# mark first 9 numbers
						_lowerCAmelCase					    =int(str(a__   )[:9]   )

						for _ in range(9   ):
												_lowerCAmelCase					    =1
												_lowerCAmelCase					    =number // 1_0

						# check first 9 numbers for pandigitality

						for x in range(9   ):
												if not check_front[x + 1]:
																		_lowerCAmelCase					    =False
						return f



def 				UpperCamelCase__      (      a__   ):


						'''simple docstring'''






						_lowerCAmelCase					    =[0] * 1_1

						# mark last 9 numbers
						for _ in range(9   ):
												_lowerCAmelCase					    =1
												_lowerCAmelCase					    =number // 1_0
						# flag
						_lowerCAmelCase					    =True

						# check last 9 numbers for pandigitality

						for x in range(9   ):
												if not check_last[x + 1]:
																		_lowerCAmelCase					    =False
						return f



def 				UpperCamelCase__      (      ):


						'''simple docstring'''






						_lowerCAmelCase					    =1
						_lowerCAmelCase					    =1
						_lowerCAmelCase					    =2
						# temporary Fibonacci numbers

						_lowerCAmelCase					    =1
						_lowerCAmelCase					    =1
						_lowerCAmelCase					    =2
						# temporary Fibonacci numbers mod 1e9

						# mod m=1e9, done for fast optimisation
						_lowerCAmelCase					    =[0] * 1_0_0_0_0_0_0
						_lowerCAmelCase					    =1_0_0_0_0_0_0_0_0_0

						for x in range(1_0_0_0_0_0_0   ):
												_lowerCAmelCase					    =(aa + ba) % m
												_lowerCAmelCase					    =ba % m
												_lowerCAmelCase					    =ca % m
												if checka(a__   ):
																		_lowerCAmelCase					    =1

						for x in range(1_0_0_0_0_0_0   ):
												_lowerCAmelCase					    =a + b
												_lowerCAmelCase					    =b
												_lowerCAmelCase					    =c
												# perform check only if in tocheck
												if tocheck[x + 3] and check(a__   ):
																		return x + 3  # first 2 already done
						return -1


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






'''simple docstring'''

from ..utils import DummyObject, requires_backends
class 	SCREAMING_SNAKE_CASE      (    metaclass=__lowercase):







		"""simple docstring"""
		lowercase :   List[Any]							=				['tensorflow_text']






		def __init__( self		,    *__A		,    **__A					)			->  List[Any]:
								requires_backends(self		,    ['tensorflow_text']					)





