





import math
from itertools import permutations


def 		_SCREAMING_SNAKE_CASE    (   lowerCAmelCase__	):




		if 1 < number < 4:
				# 2 and 3 are primes
				return True
		elif number < 2 or number % 2 == 0 or number % 3 == 0:
				# Negatives, 0, 1, all even numbers, all multiples of 3 are not primes
				return False

		# All primes number are in format of 6k +/- 1
		for i in range(5       ,int(math.sqrt(lowerCamelCase__	) + 1	)       ,6	):
				if number % i == 0 or number % (i + 2) == 0:
						return False
		return True


def 		_SCREAMING_SNAKE_CASE    (   lowerCAmelCase__       ,lowerCAmelCase__	):
		lowerCamelCase_	,			lowerCamelCase_  :    str   	=			0, len(lowerCamelCase__	) - 1
		while left <= right:
				lowerCamelCase_  :    Tuple   	=			(left + right) // 2
				if prime_list[middle] == target:
						return True
				elif prime_list[middle] < target:
						lowerCamelCase_  :    Optional[Any]   	=			middle + 1
				else:
						lowerCamelCase_  :    Union[str, Any]   	=			middle - 1

		return False


def 		_SCREAMING_SNAKE_CASE    (   ):
		lowerCamelCase_  :    str   	=			[n for n in range(10_01       ,1_00_00       ,2	) if is_prime(lowerCamelCase__	)]
		lowerCamelCase_  :    Optional[Any]   	=			[]

		for number in prime_list:
				lowerCamelCase_  :    Dict   	=			[]

				for prime_member in permutations(list(str(lowerCamelCase__	)	)	):
						lowerCamelCase_  :    List[Any]   	=			int(''.join(lowerCamelCase__	)	)

						if prime % 2 == 0:
								continue

						if search(lowerCamelCase__       ,lowerCamelCase__	):
								tmp_numbers.append(lowerCamelCase__	)

				tmp_numbers.sort()
				if len(lowerCamelCase__	) >= 3:
						candidates.append(lowerCamelCase__	)

		lowerCamelCase_  :    Optional[Any]   	=			[]
		for candidate in candidates:
				lowerCamelCase_  :    List[str]   	=			len(lowerCamelCase__	)
				lowerCamelCase_  :    Union[str, Any]   	=			False

				for i in range(lowerCamelCase__	):
						for j in range(i + 1       ,lowerCamelCase__	):
								for k in range(j + 1       ,lowerCamelCase__	):
										if (
										    abs(candidate[i] - candidate[j]	)
										    == abs(candidate[j] - candidate[k]	)
										    and len({candidate[i], candidate[j], candidate[k]}	) == 3
										):
												passed.append(
												    sorted([candidate[i], candidate[j], candidate[k]]	)	)
												lowerCamelCase_  :    Dict   	=			True

										if found:
												break
								if found:
										break
						if found:
								break

		lowerCamelCase_  :    Optional[Any]   	=			set()
		for seq in passed:
				answer.add(''.join([str(lowerCamelCase__	) for i in seq]	)	)

		return max(int(lowerCamelCase__	) for x in answer	)


if __name__ == "__main__":
		print(solution())









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


_lowercase		:     Dict 					=logging.get_logger(__name__)

_lowercase		:     Any 					={
    """dandelin/vilt-b32-mlm""": """https://huggingface.co/dandelin/vilt-b32-mlm/blob/main/config.json"""
}






class 	UpperCamelCase_     (     snake_case__       ):
					_a			:	List[str]							=				'vilt'



					def __init__(		self    :    int					,			lowerCamelCase    :    Any=3_05_22					,			lowerCamelCase    :    Union[str, Any]=2					,			lowerCamelCase    :    Optional[Any]=2					,			lowerCamelCase    :    str=40					,			lowerCamelCase    :    List[str]=7_68					,			lowerCamelCase    :    Optional[int]=12					,			lowerCamelCase    :    List[Any]=12					,			lowerCamelCase    :    List[str]=30_72					,			lowerCamelCase    :    Union[str, Any]="gelu"					,			lowerCamelCase    :    int=0.0					,			lowerCamelCase    :    str=0.0					,			lowerCamelCase    :    int=0.02					,			lowerCamelCase    :    Union[str, Any]=1E-12					,			lowerCamelCase    :    Dict=3_84					,			lowerCamelCase    :    List[str]=32					,			lowerCamelCase    :    Dict=3					,			lowerCamelCase    :    List[str]=True					,			lowerCamelCase    :    int=-1					,			lowerCamelCase    :    List[Any]=False					,			lowerCamelCase    :    Any=-1					,			**lowerCamelCase    :    str					,			):
							super().__init__(tie_word_embeddings=lowerCamelCase					,			**lowerCamelCase	)

							lowerCamelCase_  :    str   	=			vocab_size
							lowerCamelCase_  :    Dict   	=			type_vocab_size
							lowerCamelCase_  :    str   	=			modality_type_vocab_size
							lowerCamelCase_  :    Optional[Any]   	=			max_position_embeddings

							lowerCamelCase_  :    List[Any]   	=			hidden_size
							lowerCamelCase_  :    Union[str, Any]   	=			num_hidden_layers
							lowerCamelCase_  :    Any   	=			num_attention_heads
							lowerCamelCase_  :    List[Any]   	=			intermediate_size
							lowerCamelCase_  :    Union[str, Any]   	=			hidden_act
							lowerCamelCase_  :    Any   	=			hidden_dropout_prob
							lowerCamelCase_  :    Optional[int]   	=			attention_probs_dropout_prob
							lowerCamelCase_  :    Any   	=			initializer_range
							lowerCamelCase_  :    str   	=			layer_norm_eps

							lowerCamelCase_  :    Optional[Any]   	=			image_size
							lowerCamelCase_  :    List[Any]   	=			patch_size
							lowerCamelCase_  :    Tuple   	=			num_channels
							lowerCamelCase_  :    Optional[Any]   	=			qkv_bias
							lowerCamelCase_  :    Optional[int]   	=			max_image_length
							lowerCamelCase_  :    Optional[Any]   	=			num_images
