



import sys

sys.set_int_max_str_digits(0)  # type: ignore


def       UpperCamelCase(  __UpperCamelCase							:		int			):
		lowerCAmelCase_      :					Any     =			[0] * 11
		lowerCAmelCase_      :					Optional[int]     =			[0] * 11

		# mark last 9 numbers
		for _ in range(9			):
				lowerCAmelCase_      :					List[Any]     =			1
				lowerCAmelCase_      :					Optional[int]     =			number // 10
		# flag
		lowerCAmelCase_      :					Any     =			True

		# check last 9 numbers for pandigitality

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

		# mark first 9 numbers
		lowerCAmelCase_      :					List[str]     =			int(str(__UpperCamelCase			)[:9]			)

		for _ in range(9			):
				lowerCAmelCase_      :					Union[str, Any]     =			1
				lowerCAmelCase_      :					int     =			number // 10

		# check first 9 numbers for pandigitality

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


def       UpperCamelCase(  __UpperCamelCase							:		int			):
		lowerCAmelCase_      :					Optional[int]     =			[0] * 11

		# mark last 9 numbers
		for _ in range(9			):
				lowerCAmelCase_      :					str     =			1
				lowerCAmelCase_      :					List[str]     =			number // 10
		# flag
		lowerCAmelCase_      :					Any     =			True

		# check last 9 numbers for pandigitality

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


def       UpperCamelCase(  ):
		lowerCAmelCase_      :					Union[str, Any]     =			1
		lowerCAmelCase_      :					Optional[int]     =			1
		lowerCAmelCase_      :					str     =			2
		# temporary Fibonacci numbers

		lowerCAmelCase_      :					Optional[Any]     =			1
		lowerCAmelCase_      :					Dict     =			1
		lowerCAmelCase_      :					List[Any]     =			2
		# temporary Fibonacci numbers mod 1e9

		# mod m=1e9, done for fast optimisation
		lowerCAmelCase_      :					List[str]     =			[0] * 1000000
		lowerCAmelCase_      :					str     =			1000000000

		for x in range(1000000			):
				lowerCAmelCase_      :					Optional[Any]     =			(aa + ba) % m
				lowerCAmelCase_      :					Dict     =			ba % m
				lowerCAmelCase_      :					List[Any]     =			ca % m
				if checka(__UpperCamelCase			):
						lowerCAmelCase_      :					Any     =			1

		for x in range(1000000			):
				lowerCAmelCase_      :					List[Any]     =			a + b
				lowerCAmelCase_      :					Optional[Any]     =			b
				lowerCAmelCase_      :					Tuple     =			c
				# perform check only if in tocheck
				if tocheck[x + 3] and check(__UpperCamelCase			):
						return x + 3  # first 2 already done
		return -1


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










from ...configuration_utils import PretrainedConfig
from ...utils import logging


A__  :  Tuple       = logging.get_logger(__name__)

A__  :  Tuple       = {
    '''facebook/opt-125m''': '''https://huggingface.co/facebook/opt-125m/blob/main/config.json''',
    '''facebook/opt-350m''': '''https://huggingface.co/facebook/opt-350m/blob/main/config.json''',
    '''facebook/opt-1.3b''': '''https://huggingface.co/facebook/opt-1.3b/blob/main/config.json''',
    '''facebook/opt-2.7b''': '''https://huggingface.co/facebook/opt-2.7b/blob/main/config.json''',
    '''facebook/opt-6.7b''': '''https://huggingface.co/facebook/opt-6.7b/blob/main/config.json''',
    '''facebook/opt-13b''': '''https://huggingface.co/facebook/opt-13b/blob/main/config.json''',
}



class     __snake_case						(					UpperCamelCase_						):
							_a      				=			'''opt'''
							_a      				=			['''past_key_values''']




							def __init__(	self					:	Optional[int]    ,    A_					:	Any=5_0_2_7_2    ,    A_					:	Tuple=7_6_8    ,    A_					:	Optional[Any]=1_2    ,    A_					:	str=3_0_7_2    ,    A_					:	Dict=2_0_4_8    ,    A_					:	List[Any]=True    ,    A_					:	Optional[int]=False    ,    A_					:	Optional[int]=None    ,    A_					:	Dict=0.1    ,    A_					:	str=0.0    ,    A_					:	Union[str, Any]=1_2    ,    A_					:	List[str]="relu"    ,    A_					:	Dict=0.0    ,    A_					:	Union[str, Any]=0.02    ,    A_					:	Optional[Any]=True    ,    A_					:	Optional[Any]=1    ,    A_					:	List[Any]=2    ,    A_					:	Dict=2    ,    A_					:	Optional[int]=True    ,    A_					:	Optional[int]=True    ,    **A_					:	List[Any]    ,    ):
									super().__init__(
									    pad_token_id=A_    ,    bos_token_id=A_    ,    eos_token_id=A_    ,    **A_    ,    )
									lowerCAmelCase_      :					List[Any]     =			vocab_size
									lowerCAmelCase_      :					Union[str, Any]     =			max_position_embeddings
									lowerCAmelCase_      :					Optional[int]     =			num_attention_heads
									lowerCAmelCase_      :					int     =			word_embed_proj_dim if word_embed_proj_dim is not None else hidden_size
									lowerCAmelCase_      :					List[Any]     =			ffn_dim
									lowerCAmelCase_      :					Any     =			hidden_size
									lowerCAmelCase_      :					Union[str, Any]     =			num_hidden_layers
									lowerCAmelCase_      :					str     =			dropout
									lowerCAmelCase_      :					List[str]     =			attention_dropout
									lowerCAmelCase_      :					Any     =			activation_function
									lowerCAmelCase_      :					Union[str, Any]     =			init_std
									lowerCAmelCase_      :					int     =			layerdrop
									lowerCAmelCase_      :					Optional[int]     =			use_cache
									lowerCAmelCase_      :					int     =			do_layer_norm_before
									# We keep these variables at `True` for backward compatibility.
									lowerCAmelCase_      :					Optional[Any]     =			enable_bias
									lowerCAmelCase_      :					Optional[int]     =			layer_norm_elementwise_affine

									# Note that the only purpose of `_remove_final_layer_norm` is to keep backward compatibility
									# with checkpoints that have been fine-tuned before transformers v4.20.1
									# see https://github.com/facebookresearch/metaseq/pull/164
									lowerCAmelCase_      :					Optional[Any]     =			_remove_final_layer_norm





