






from math import sqrt


def __A   (				__lowerCAmelCase     )->  list[int]:





						"""simple docstring"""



						_UpperCAmelCase     =      [1]
						for i in range(2			,		int(sqrt(__lowerCAmelCase     )     ) + 1			,		1     ):
												if number % i == 0:
																		values.append(__lowerCAmelCase     )
																		if int(number // i     ) != i:
																								values.append(int(number // i     )     )
						return sorted(__lowerCAmelCase     )


def __A   (				__lowerCAmelCase     )->  bool:





						"""simple docstring"""



						return sum(factors(__lowerCAmelCase     )     ) > n


def __A   (				__lowerCAmelCase     )->  bool:





						"""simple docstring"""



						_UpperCAmelCase     =      factors(__lowerCAmelCase     )
						_UpperCAmelCase     =      len(__lowerCAmelCase     )
						_UpperCAmelCase     =      [[0 for i in range(number + 1     )] for j in range(r + 1     )]
						for i in range(r + 1     ):
												_UpperCAmelCase     =      True

						for i in range(1			,		number + 1     ):
												_UpperCAmelCase     =      False

						for i in range(1			,		r + 1     ):
												for j in range(1			,		number + 1     ):
																		if j < values[i - 1]:
																								_UpperCAmelCase     =      subset[i - 1][j]
																		else:
																								_UpperCAmelCase     =      subset[i - 1][j] or subset[i - 1][j - values[i - 1]]

						return subset[r][number] != 0


def __A   (				__lowerCAmelCase     )->  bool:





						"""simple docstring"""



						return abundant(__lowerCAmelCase     ) and not semi_perfect(__lowerCAmelCase     )


if __name__ == "__main__":
		import doctest

		doctest.testmod(verbose=True)
		for number in (69, 70, 71):
				print(F'''{number} is {'' if weird(number) else 'not '}weird.''')








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


_a				     =  logging.get_logger(__name__)

_a				     =  {
    '''facebook/regnet-y-040''': '''https://huggingface.co/facebook/regnet-y-040/blob/main/config.json''',
}





class __lowerCamelCase			(				snake_case__):





	"""simple docstring"""






	UpperCamelCase__								=				"regnet"
	UpperCamelCase__								=				["x", "y"]

	def __init__(							self	,   UpperCAmelCase=3	,   UpperCAmelCase=32	,   UpperCAmelCase=[128, 192, 512, 1088]	,   UpperCAmelCase=[2, 6, 12, 2]	,   UpperCAmelCase=64	,   UpperCAmelCase="y"	,   UpperCAmelCase="relu"	,   **UpperCAmelCase	,   ):
							"""simple docstring"""







							super().__init__(**UpperCAmelCase   )
							if layer_type not in self.layer_types:
													raise ValueError(F"""layer_type={layer_type} is not one of {",".join(self.layer_types   )}"""   )
							_UpperCAmelCase     =      num_channels
							_UpperCAmelCase     =      embedding_size
							_UpperCAmelCase     =      hidden_sizes
							_UpperCAmelCase     =      depths
							_UpperCAmelCase     =      groups_width
							_UpperCAmelCase     =      layer_type
							_UpperCAmelCase     =      hidden_act
							# always downsample in the first stage
							_UpperCAmelCase     =      True
