






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


_UpperCamelCase			:	Optional[Any]								=logging.get_logger(__name__)

_UpperCamelCase			:	Union[str, Any]								={
    'Visual-Attention-Network/van-base': (
        'https://huggingface.co/Visual-Attention-Network/van-base/blob/main/config.json'
    ),
}






class 						UpperCAmelCase__ (							__snake_case							):
		__snake_case      :       Optional[Any]     =   "van"







		def __init__(					self       ,A__=224       ,A__=3       ,A__=[7, 3, 3, 3]       ,A__=[4, 2, 2, 2]       ,A__=[64, 128, 320, 512]       ,A__=[3, 3, 12, 3]       ,A__=[8, 8, 4, 4]       ,A__="gelu"       ,A__=0.02       ,A__=1E-6       ,A__=1E-2       ,A__=0.0       ,A__=0.0       ,**A__       ,):
						super().__init__(**A__		)
						_A	:				int   =      image_size
						_A	:				int   =      num_channels
						_A	:				Dict   =      patch_sizes
						_A	:				str   =      strides
						_A	:				Union[str, Any]   =      hidden_sizes
						_A	:				Dict   =      depths
						_A	:				Optional[Any]   =      mlp_ratios
						_A	:				Dict   =      hidden_act
						_A	:				Optional[Any]   =      initializer_range
						_A	:				Optional[int]   =      layer_norm_eps
						_A	:				Tuple   =      layer_scale_init_value
						_A	:				Dict   =      drop_path_rate
						_A	:				Union[str, Any]   =      dropout_rate











def  a__ (__lowercase							:int					,  __lowercase							:int   )		-> int:
				return abs(__lowercase   ) if a == 0 else greatest_common_divisor(b % a					,  __lowercase   )



def  a__ (__lowercase							:int					,  __lowercase							:int   )		-> int:
				while y:  # --> when y=0 then loop will terminate and return x as final GCD.
								_A  ,				_A	:				Union[str, Any]   =      y, x % y
				return abs(__lowercase   )



def  a__ ()		-> Optional[Any]:
				try:
								_A	:				Optional[Any]   =      input('''Enter two integers separated by comma (,): '''   ).split(''','''   )
								_A	:				List[Any]   =      int(nums[0]   )
								_A	:				Optional[int]   =      int(nums[1]   )
								print(
								    f"""greatest_common_divisor({num_a}, {num_a}) = """
								    f"""{greatest_common_divisor(__lowercase					,  __lowercase   )}"""   )
								print(f"""By iterative gcd({num_a}, {num_a}) = {gcd_by_iterative(__lowercase					,  __lowercase   )}"""   )
				except (IndexError, UnboundLocalError, ValueError):
								print('''Wrong input'''   )


if __name__ == "__main__":
	main()



