
"""simple docstring"""

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


_A				=					logging.get_logger(__name__)

_A				=					{
    'MCG-NJU/videomae-base': 'https://huggingface.co/MCG-NJU/videomae-base/resolve/main/config.json',
}






class 			_lowercase  (							__UpperCAmelCase						):
	lowercase_								=      'videomae'




	def __init__(					self						,					UpperCAmelCase_=224						,					UpperCAmelCase_=16						,					UpperCAmelCase_=3						,					UpperCAmelCase_=16						,					UpperCAmelCase_=2						,					UpperCAmelCase_=768						,					UpperCAmelCase_=12						,					UpperCAmelCase_=12						,					UpperCAmelCase_=3072						,					UpperCAmelCase_="gelu"						,					UpperCAmelCase_=0.0						,					UpperCAmelCase_=0.0						,					UpperCAmelCase_=0.02						,					UpperCAmelCase_=1E-1_2						,					UpperCAmelCase_=True						,					UpperCAmelCase_=True						,					UpperCAmelCase_=6						,					UpperCAmelCase_=384						,					UpperCAmelCase_=4						,					UpperCAmelCase_=1536						,					UpperCAmelCase_=True						,					**UpperCAmelCase_						,					)						->				List[str]:
			super().__init__(**_snake_case   )

			lowerCamelCase	:     Tuple            =       image_size
			lowerCamelCase	:     Dict            =       patch_size
			lowerCamelCase	:     str            =       num_channels
			lowerCamelCase	:     Union[str, Any]            =       num_frames
			lowerCamelCase	:     Union[str, Any]            =       tubelet_size

			lowerCamelCase	:     List[Any]            =       hidden_size
			lowerCamelCase	:     Any            =       num_hidden_layers
			lowerCamelCase	:     Optional[Any]            =       num_attention_heads
			lowerCamelCase	:     List[Any]            =       intermediate_size
			lowerCamelCase	:     Tuple            =       hidden_act
			lowerCamelCase	:     List[str]            =       hidden_dropout_prob
			lowerCamelCase	:     Optional[int]            =       attention_probs_dropout_prob
			lowerCamelCase	:     Dict            =       initializer_range
			lowerCamelCase	:     List[Any]            =       layer_norm_eps
			lowerCamelCase	:     Union[str, Any]            =       qkv_bias
			lowerCamelCase	:     str            =       use_mean_pooling

			lowerCamelCase	:     List[Any]            =       decoder_num_attention_heads
			lowerCamelCase	:     Optional[int]            =       decoder_hidden_size
			lowerCamelCase	:     Optional[Any]            =       decoder_num_hidden_layers
			lowerCamelCase	:     List[Any]            =       decoder_intermediate_size
			lowerCamelCase	:     List[str]            =       norm_pix_loss














from __future__ import annotations




def       _a   (							lowerCamelCase__				)  ->      list[int]:
 lowerCamelCase_							:    Any							=     [0] * max_one

 for i in range(0 ,			lowerCamelCase__				):
  lowerCamelCase_							:    Union[str, Any]							=     i

 for i in range(2 ,			lowerCamelCase__				):
  if totients[i] == i:
   for j in range(lowerCamelCase__ ,			lowerCamelCase__ ,			lowerCamelCase__				):
    totients[j] -= totients[j] // i

 return totients




def       _a   (							lowerCamelCase__ ,			lowerCamelCase__				)  ->      bool:
 return sorted(str(lowerCamelCase__				)				) == sorted(str(lowerCamelCase__				)				)




def       _a   (							lowerCamelCase__ = 10_00_00_00				)  ->      int:
 lowerCamelCase_							:    Tuple							=     1  # i
 lowerCamelCase_							:    Union[str, Any]							=     0  # φ(i)
 lowerCamelCase_							:    List[Any]							=     get_totients(max_n + 1				)

 for i in range(2 ,			max_n + 1				):
  lowerCamelCase_							:    Tuple							=     totients[i]

  if i * min_denominator < min_numerator * t and has_same_digits(lowerCamelCase__ ,			lowerCamelCase__				):
   lowerCamelCase_							:    str							=     i
   lowerCamelCase_							:    List[Any]							=     t

 return min_numerator


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