"""simple docstring"""






from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ...utils.backbone_utils import BackboneConfigMixin, get_aligned_output_features_output_indices


__lowerCAmelCase					: Optional[int]        =logging.get_logger(__name__)

__lowerCAmelCase					: int        ={
    """microsoft/focalnet-tiny""": """https://huggingface.co/microsoft/focalnet-tiny/resolve/main/config.json""",
}





class 				_A		( UpperCamelCase_						,					UpperCamelCase_			):
      snake_case__    :     Optional[Any]													=			'focalnet'

      def __init__(		self	, __lowerCAmelCase=224	, __lowerCAmelCase=4	, __lowerCAmelCase=3	, __lowerCAmelCase=96	, __lowerCAmelCase=False	, __lowerCAmelCase=[192, 384, 768, 768]	, __lowerCAmelCase=[2, 2, 6, 2]	, __lowerCAmelCase=[2, 2, 2, 2]	, __lowerCAmelCase=[3, 3, 3, 3]	, __lowerCAmelCase="gelu"	, __lowerCAmelCase=4.0	, __lowerCAmelCase=0.0	, __lowerCAmelCase=0.1	, __lowerCAmelCase=False	, __lowerCAmelCase=1E-4	, __lowerCAmelCase=False	, __lowerCAmelCase=False	, __lowerCAmelCase=False	, __lowerCAmelCase=0.0_2	, __lowerCAmelCase=1E-5	, __lowerCAmelCase=32	, __lowerCAmelCase=None	, __lowerCAmelCase=None	, **__lowerCAmelCase	, ):







            """simple docstring"""



            super().__init__(**__a		)

            lowercase														=			image_size
            lowercase														=			patch_size
            lowercase														=			num_channels
            lowercase														=			embed_dim
            lowercase														=			use_conv_embed
            lowercase														=			hidden_sizes
            lowercase														=			depths
            lowercase														=			focal_levels
            lowercase														=			focal_windows
            lowercase														=			hidden_act
            lowercase														=			mlp_ratio
            lowercase														=			hidden_dropout_prob
            lowercase														=			drop_path_rate
            lowercase														=			use_layerscale
            lowercase														=			layerscale_value
            lowercase														=			use_post_layernorm
            lowercase														=			use_post_layernorm_in_modulation
            lowercase														=			normalize_modulator
            lowercase														=			initializer_range
            lowercase														=			layer_norm_eps
            lowercase														=			encoder_stride
            lowercase														=			['stem'] + [f'stage{idx}' for idx in range(1	, len(self.depths		) + 1		)]
            lowercase														=			get_aligned_output_features_output_indices(
                out_features=__a	, out_indices=__a	, stage_names=self.stage_names		)




"""simple docstring"""






from __future__ import annotations

import math


def     UpperCAmelCase__ (       lowerCAmelCase__  :int	)				->					list[int]:
      '''simple docstring'''


      if num <= 0:
            lowercase														=			f'{num}: Invalid input, please enter a positive integer.'
            raise ValueError(lowerCAmelCase__	)

      lowercase														=			[True] * (num + 1)
      lowercase														=			[]
      lowercase														=			2
      lowercase														=			int(math.sqrt(lowerCAmelCase__	)	)

      while start <= end:
            # If start is a prime
            if sieve[start] is True:
                  prime.append(lowerCAmelCase__	)

                  # Set multiples of start be False
                  for i in range(start * start      ,	num + 1      ,	lowerCAmelCase__	):
                        if sieve[i] is True:
                              lowercase														=			False

            start += 1

      for j in range(end + 1      ,	num + 1	):
            if sieve[j] is True:
                  prime.append(lowerCAmelCase__	)

      return prime


if __name__ == "__main__":
       print(prime_sieve(int(input("""Enter a positive integer: """).strip())))



