



from functools import reduce

_lowercase: Optional[Any]      			=		(
    '73167176531330624919225119674426574742355349194934'
    '96983520312774506326239578318016984801869478851843'
    '85861560789112949495459501737958331952853208805511'
    '12540698747158523863050715693290963295227443043557'
    '66896648950445244523161731856403098711121722383113'
    '62229893423380308135336276614282806444486645238749'
    '30358907296290491560440772390713810515859307960866'
    '70172427121883998797908792274921901699720888093776'
    '65727333001053367881220235421809751254540594752243'
    '52584907711670556013604839586446706324415722155397'
    '53697817977846174064955149290862569321978468622482'
    '83972241375657056057490261407972968652414535100474'
    '82166370484403199890008895243450658541227588666881'
    '16427171479924442928230863465674813919123162824586'
    '17866458359124566529476545682848912883142607690042'
    '24219022671055626321111109370544217506941658960408'
    '07198403850962455444362981230987879927244284909188'
    '84580156166097919133875499200524063689912560717606'
    '05886116467109405077541002256983155200055935729725'
    '71636269561882670428252483600823257530420752963450'
)






def     a(      A       :    str = N       )		->       int:
					"""simple docstring"""





					return max(
					    # mypy cannot properly interpret reduce
					    int(reduce(lambda A ,     A       : str(int(A       ) * int(A       )       ) ,     n[i : i + 13]       )       )
					    for i in range(len(A       ) - 12       )       )


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







'''simple docstring'''







import warnings
from typing import List

import numpy as np

from ...processing_utils import ProcessorMixin
from ...tokenization_utils_base import BatchEncoding
from ...utils import is_flax_available, is_tf_available, is_torch_available
class 				__SCREAMING_SNAKE_CASE  (lowerCamelCase_      ):






				"""simple docstring"""







				__a            =['image_processor', 'tokenizer']
				__a            ='OwlViTImageProcessor'
				__a            =('CLIPTokenizer', 'CLIPTokenizerFast')




				def __init__(  self     :					List[Any]					,				__a     :					str=None					,				__a     :					List[str]=None					,				**__a     :					List[Any]					):
								_a								= None
								if "feature_extractor" in kwargs:
												warnings.warn(
												    "The `feature_extractor` argument is deprecated and will be removed in v5, use `image_processor`"
												    " instead."					,				__a					,				)
												_a								= kwargs.pop("feature_extractor"					)

								_a								= image_processor if image_processor is not None else feature_extractor
								if image_processor is None:
												raise ValueError("You need to specify an `image_processor`."					)
								if tokenizer is None:
												raise ValueError("You need to specify a `tokenizer`."					)

								super().__init__(__a					,				__a					)




				def __call__(  self     :					Union[str, Any]					,				__a     :					Any=None					,				__a     :					List[str]=None					,				__a     :					int=None					,				__a     :					Optional[int]="max_length"					,				__a     :					List[str]="np"					,				**__a     :					Any					):

								if text is None and query_images is None and images is None:
												raise ValueError(
												    "You have to specify at least one text or query image or image. All three cannot be none."					)

								if text is not None:
												if isinstance(__a					,				__a					) or (isinstance(__a					,				__a					) and not isinstance(text[0]					,				__a					)):
																_a								= [self.tokenizer(__a					,				padding=__a					,				return_tensors=__a					,				**__a					)]

												elif isinstance(__a					,				__a					) and isinstance(text[0]					,				__a					):
																_a								= []

																# Maximum number of queries across batch
																_a								= max([len(__a					) for t in text]					)

																# Pad all batch samples to max number of text queries
																for t in text:
																				if len(__a					) != max_num_queries:
																								_a								= t + [" "] * (max_num_queries - len(__a					))

																				_a								= self.tokenizer(__a					,				padding=__a					,				return_tensors=__a					,				**__a					)
																				encodings.append(__a					)
												else:
																raise TypeError("Input text should be a string, a list of strings or a nested list of strings"					)

												if return_tensors == "np":
																_a								= np.concatenate([encoding["input_ids"] for encoding in encodings]					,				axis=0					)
																_a								= np.concatenate([encoding["attention_mask"] for encoding in encodings]					,				axis=0					)

												elif return_tensors == "jax" and is_flax_available():
																import jax.numpy as jnp

																_a								= jnp.concatenate([encoding["input_ids"] for encoding in encodings]					,				axis=0					)
																_a								= jnp.concatenate([encoding["attention_mask"] for encoding in encodings]					,				axis=0					)

												elif return_tensors == "pt" and is_torch_available():
																import torch

																_a								= torch.cat([encoding["input_ids"] for encoding in encodings]					,				dim=0					)
																_a								= torch.cat([encoding["attention_mask"] for encoding in encodings]					,				dim=0					)

												elif return_tensors == "tf" and is_tf_available():
																import tensorflow as tf

																_a								= tf.stack([encoding["input_ids"] for encoding in encodings]					,				axis=0					)
																_a								= tf.stack([encoding["attention_mask"] for encoding in encodings]					,				axis=0					)

												else:
																raise ValueError("Target return tensor type could not be returned"					)

												_a								= BatchEncoding()
												_a								= input_ids
												_a								= attention_mask

								if query_images is not None:
												_a								= BatchEncoding()
												_a								= self.image_processor(
												    __a					,				return_tensors=__a					,				**__a					).pixel_values
												_a								= query_pixel_values

								if images is not None:
												_a								= self.image_processor(__a					,				return_tensors=__a					,				**__a					)

								if text is not None and images is not None:
												_a								= image_features.pixel_values
												return encoding
								elif query_images is not None and images is not None:
												_a								= image_features.pixel_values
												return encoding
								elif text is not None or query_images is not None:
												return encoding
								else:
												return BatchEncoding(data=dict(**__a					)					,				tensor_type=__a					)




				def   UpperCamelCase__   (  self     :					List[str]					,				*__a     :					Union[str, Any]					,				**__a     :					int					):
								return self.image_processor.post_process(*__a					,				**__a					)




				def   UpperCamelCase__   (  self     :					Optional[int]					,				*__a     :					Optional[Any]					,				**__a     :					List[str]					):
								return self.image_processor.post_process_object_detection(*__a					,				**__a					)




				def   UpperCamelCase__   (  self     :					Optional[Any]					,				*__a     :					Dict					,				**__a     :					Union[str, Any]					):
								return self.image_processor.post_process_image_guided_detection(*__a					,				**__a					)




				def   UpperCamelCase__   (  self     :					str					,				*__a     :					Tuple					,				**__a     :					Tuple					):
								return self.tokenizer.batch_decode(*__a					,				**__a					)




				def   UpperCamelCase__   (  self     :					List[str]					,				*__a     :					List[Any]					,				**__a     :					Optional[int]					):
								return self.tokenizer.decode(*__a					,				**__a					)




				@property
				def   UpperCamelCase__   (  self     :					List[str]					):
								warnings.warn(
								    "`feature_extractor_class` is deprecated and will be removed in v5. Use `image_processor_class` instead."					,				__a					,				)
								return self.image_processor_class




				@property
				def   UpperCamelCase__   (  self     :					str					):
								warnings.warn(
								    "`feature_extractor` is deprecated and will be removed in v5. Use `image_processor` instead."					,				__a					,				)
								return self.image_processor
