





'''simple docstring'''



from collections import OrderedDict
from typing import Mapping

from packaging import version

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_SCREAMING_SNAKE_CASE   =      logging.get_logger(__name__)

_SCREAMING_SNAKE_CASE   =      {
    '''microsoft/beit-base-patch16-224-pt22k''': (
        '''https://huggingface.co/microsoft/beit-base-patch16-224-pt22k/resolve/main/config.json'''
    ),
    # See all BEiT models at https://huggingface.co/models?filter=beit
}






class 							__lowercase    ( lowerCAmelCase__  ):







	'''simple docstring'''

	a      :			Optional[Any]     =    "beit"


	def __init__(self       ,_lowerCamelCase=8192       ,_lowerCamelCase=768       ,_lowerCamelCase=12       ,_lowerCamelCase=12       ,_lowerCamelCase=3072       ,_lowerCamelCase="gelu"       ,_lowerCamelCase=0.0       ,_lowerCamelCase=0.0       ,_lowerCamelCase=0.0_2       ,_lowerCamelCase=1E-1_2       ,_lowerCamelCase=224       ,_lowerCamelCase=16       ,_lowerCamelCase=3       ,_lowerCamelCase=False       ,_lowerCamelCase=False       ,_lowerCamelCase=False       ,_lowerCamelCase=False       ,_lowerCamelCase=0.1       ,_lowerCamelCase=0.1       ,_lowerCamelCase=True       ,_lowerCamelCase=[3, 5, 7, 11]       ,_lowerCamelCase=[1, 2, 3, 6]       ,_lowerCamelCase=True       ,_lowerCamelCase=0.4       ,_lowerCamelCase=256       ,_lowerCamelCase=1       ,_lowerCamelCase=False       ,_lowerCamelCase=255       ,**_lowerCamelCase       ,)							->							Any:







				'''simple docstring'''





				super().__init__(**_lowerCamelCase	)

				__lowercase			  =							vocab_size
				__lowercase			  =							hidden_size
				__lowercase			  =							num_hidden_layers
				__lowercase			  =							num_attention_heads
				__lowercase			  =							intermediate_size
				__lowercase			  =							hidden_act
				__lowercase			  =							hidden_dropout_prob
				__lowercase			  =							attention_probs_dropout_prob
				__lowercase			  =							initializer_range
				__lowercase			  =							layer_norm_eps

				__lowercase			  =							image_size
				__lowercase			  =							patch_size
				__lowercase			  =							num_channels
				__lowercase			  =							use_mask_token
				__lowercase			  =							use_absolute_position_embeddings
				__lowercase			  =							use_relative_position_bias
				__lowercase			  =							use_shared_relative_position_bias
				__lowercase			  =							layer_scale_init_value
				__lowercase			  =							drop_path_rate
				__lowercase			  =							use_mean_pooling
				# decode head attributes (semantic segmentation)
				__lowercase			  =							out_indices
				__lowercase			  =							pool_scales
				# auxiliary head attributes (semantic segmentation)
				__lowercase			  =							use_auxiliary_head
				__lowercase			  =							auxiliary_loss_weight
				__lowercase			  =							auxiliary_channels
				__lowercase			  =							auxiliary_num_convs
				__lowercase			  =							auxiliary_concat_input
				__lowercase			  =							semantic_loss_ignore_index






class 							__lowercase    ( lowerCAmelCase__  ):







	'''simple docstring'''

	a      :			Union[str, Any]     =    version.parse("1.11"  )


	@property
	def   _UpperCAmelCase       (self	)							->							Mapping[str, Mapping[int, str]]:







				'''simple docstring'''





				return OrderedDict(
				    [
				        ('''pixel_values''', {0: '''batch''', 1: '''num_channels''', 2: '''height''', 3: '''width'''}),
				    ]	)


	@property
	def   _UpperCAmelCase       (self	)							->							float:







				'''simple docstring'''





				return 1E-4












'''simple docstring'''



from math import sqrt




def 				_lowerCAmelCase  (			lowerCamelCase_     :					int			):
			__lowercase			  =							0
			for i in range(1						,    int(sqrt(lowerCamelCase_			) + 1			)			):
						if n % i == 0 and i != sqrt(lowerCamelCase_			):
									total += i + n // i
						elif i == sqrt(lowerCamelCase_			):
									total += i
			return total - n




def 				_lowerCAmelCase  (			lowerCamelCase_     :					int = 1_0_0_0_0			):
			__lowercase			  =							sum(
			    i
			    for i in range(1						,    lowerCamelCase_			)
			    if sum_of_divisors(sum_of_divisors(lowerCamelCase_			)			) == i and sum_of_divisors(lowerCamelCase_			) != i			)
			return total


if __name__ == "__main__":
	print(solution(int(str(input()).strip())))





