'''simple docstring'''




from dataclasses import dataclass
from typing import Callable, Optional

import datasets

@dataclass
class      lowerCamelCase_     (datasets.BuilderConfig   ):
						'''simple docstring'''

						__UpperCamelCase:  Optional[Callable]      =						None
						__UpperCamelCase:  Optional[dict]      =						None
						__UpperCamelCase:  Optional[datasets.Features]      =						None




						def 					_A     (	self						:    Tuple	):
													assert self.generator is not None, "generator must be specified"

													if self.gen_kwargs is None:
																				_UpperCAmelCase					:  Optional[int]											=   {}

class      lowerCamelCase_     (datasets.GeneratorBasedBuilder   ):
						'''simple docstring'''

						__UpperCamelCase:  Any      =						GeneratorConfig




						def 					_A     (	self						:    Any	):
													return datasets.DatasetInfo(features=self.config.features	)




						def 					_A     (	self						:    Any						, A						:    Any	):
													return [datasets.SplitGenerator(name=datasets.Split.TRAIN						, gen_kwargs=self.config.gen_kwargs	)]





						def 					_A     (	self						:    str						, **A						:    Tuple	):
													for idx, ex in enumerate(self.config.generator(**A	)	):
																				yield idx, ex


'''simple docstring'''




def      UpperCamelCase_							( _UpperCAmelCase  :				int   )   ->   bool:


       """simple docstring"""







       _UpperCAmelCase					:  Optional[int]											=   9

       while num > 0:
              if num % 10 != digit:
                     return False
              num //= 100
              digit -= 1

       return True

def      UpperCamelCase_							( )   ->   int:


       """simple docstring"""







       _UpperCAmelCase					:  Optional[Any]											=   138_902_663

       while not is_square_form(num * num   ):
              if num % 10 == 3:
                     num -= 6  # (3 - 6) % 10 = 7
              else:
                     num -= 4  # (7 - 4) % 10 = 3

       return num * 10


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

