





import sys

sys.set_int_max_str_digits(0)  # type: ignore


def _A   (    __magic_name__       ):
   lowercase__    =  [0] * 11
   lowercase__    =  [0] * 11

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

   # check last 9 numbers for pandigitality

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

   # mark first 9 numbers
   lowercase__    =  int(str(__magic_name__       )[:9]       )

   for _ in range(9       ):
      lowercase__    =  1
      lowercase__    =  number // 10

   # check first 9 numbers for pandigitality

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


def _A   (    __magic_name__       ):
   lowercase__    =  [0] * 11

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

   # check last 9 numbers for pandigitality

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


def _A   (    ):
   lowercase__    =  1
   lowercase__    =  1
   lowercase__    =  2
   # temporary Fibonacci numbers

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

   # mod m=1e9, done for fast optimisation
   lowercase__    =  [0] * 100_0000
   lowercase__    =  10_0000_0000

   for x in range(100_0000       ):
      lowercase__    =  (aa + ba) % m
      lowercase__    =  ba % m
      lowercase__    =  ca % m
      if checka(__magic_name__       ):
         lowercase__    =  1

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


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













from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_flax_available,
    is_tf_available,
    is_torch_available,
)


_snake_case				= {"""configuration_regnet""": ["""REGNET_PRETRAINED_CONFIG_ARCHIVE_MAP""", """RegNetConfig"""]}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  _snake_case				= [
      """REGNET_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """RegNetForImageClassification""",
      """RegNetModel""",
      """RegNetPreTrainedModel""",
  ]

try:
  if not is_tf_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  _snake_case				= [
      """TF_REGNET_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """TFRegNetForImageClassification""",
      """TFRegNetModel""",
      """TFRegNetPreTrainedModel""",
  ]

try:
  if not is_flax_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  _snake_case				= [
      """FlaxRegNetForImageClassification""",
      """FlaxRegNetModel""",
      """FlaxRegNetPreTrainedModel""",
  ]


if TYPE_CHECKING:
  from .configuration_regnet import REGNET_PRETRAINED_CONFIG_ARCHIVE_MAP, RegNetConfig

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_regnet import (
        REGNET_PRETRAINED_MODEL_ARCHIVE_LIST,
        RegNetForImageClassification,
        RegNetModel,
        RegNetPreTrainedModel,
    )

  try:
    if not is_tf_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_tf_regnet import (
        TF_REGNET_PRETRAINED_MODEL_ARCHIVE_LIST,
        TFRegNetForImageClassification,
        TFRegNetModel,
        TFRegNetPreTrainedModel,
    )

  try:
    if not is_flax_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_flax_regnet import (
        FlaxRegNetForImageClassification,
        FlaxRegNetModel,
        FlaxRegNetPreTrainedModel,
    )


else:
  import sys

  _snake_case				= _LazyModule(__name__, globals()["""__file__"""], _import_structure)






