


from math import sqrt
def 			UpperCAmelCase__						(UpperCamelCase_				):



     """simple docstring"""






     snake_case		 =				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 			UpperCAmelCase__						(UpperCamelCase_ = 1_00_00				):



     """simple docstring"""






     snake_case		 =				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())))












from .configuration_bert_masked import MaskedBertConfig
from .modeling_bert_masked import (
    MaskedBertForMultipleChoice,
    MaskedBertForQuestionAnswering,
    MaskedBertForSequenceClassification,
    MaskedBertForTokenClassification,
    MaskedBertModel,
)
from .modules import *




