import sys

sys.set_int_max_str_digits(0)  # type: ignore

def 	__lowerCamelCase							(				__a    : int		)      ->       bool:
	_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(__a		)[: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 	__lowerCamelCase							(				__a    : int		)      ->       bool:
	_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 	__lowerCamelCase							(				)      ->       int:
	_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] * 1_000_000
	_lowercase   =1_000_000_000

	for x in range(1_000_000		):
		_lowercase   =(aa + ba) % m
		_lowercase   =ba % m
		_lowercase   =ca % m
		if checka(__a		):
			_lowercase   =1

	for x in range(1_000_000		):
		_lowercase   =a + b
		_lowercase   =b
		_lowercase   =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 dataclasses import dataclass
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
 from .image_encoder import PaintByExampleImageEncoder
 from .pipeline_paint_by_example import PaintByExamplePipeline

