#                      Name : Arif Khan
#                      Judge: HACKERRANK
#                      University: Primeasia University
#                      problem: Day 19: Interfaces
#                      Difficulty: Easy
#                      Problem Link: https://www.hackerrank.com/challenges/30-interfaces/problem
#

class AdvancedArithmetic(object):
    def divisorSum(n):
        raise NotImplementedError

class Calculator(AdvancedArithmetic):
    def divisorSum(self, n):
        sum = 0
        for i in range(1,n+1):
            if n%i == 0:
                sum += i
        return sum

n = int(input())
my_calculator = Calculator()
s = my_calculator.divisorSum(n)
print("I implemented: " + type(my_calculator).__bases__[0].__name__)
print(s)
a302dfa0690f5fff380e952868f909d62e568f7e
<mask token>


class Calculator(AdvancedArithmetic):

    def divisorSum(self, n):
        sum = 0
        for i in range(1, n + 1):
            if n % i == 0:
                sum += i
        return sum


<mask token>

class AdvancedArithmetic(object):

    def divisorSum(n):
        raise NotImplementedError


class Calculator(AdvancedArithmetic):

    def divisorSum(self, n):
        sum = 0
        for i in range(1, n + 1):
            if n % i == 0:
                sum += i
        return sum


<mask token>

class AdvancedArithmetic(object):

    def divisorSum(n):
        raise NotImplementedError


class Calculator(AdvancedArithmetic):

    def divisorSum(self, n):
        sum = 0
        for i in range(1, n + 1):
            if n % i == 0:
                sum += i
        return sum


<mask token>
print('I implemented: ' + type(my_calculator).__bases__[0].__name__)
print(s)

class AdvancedArithmetic(object):

    def divisorSum(n):
        raise NotImplementedError


class Calculator(AdvancedArithmetic):

    def divisorSum(self, n):
        sum = 0
        for i in range(1, n + 1):
            if n % i == 0:
                sum += i
        return sum


n = int(input())
my_calculator = Calculator()
s = my_calculator.divisorSum(n)
print('I implemented: ' + type(my_calculator).__bases__[0].__name__)
print(s)

#                      Name : Arif Khan
#                      Judge: HACKERRANK
#                      University: Primeasia University
#                      problem: Day 19: Interfaces
#                      Difficulty: Easy
#                      Problem Link: https://www.hackerrank.com/challenges/30-interfaces/problem
#

class AdvancedArithmetic(object):
    def divisorSum(n):
        raise NotImplementedError

class Calculator(AdvancedArithmetic):
    def divisorSum(self, n):
        sum = 0
        for i in range(1,n+1):
            if n%i == 0:
                sum += i
        return sum

n = int(input())
my_calculator = Calculator()
s = my_calculator.divisorSum(n)
print("I implemented: " + type(my_calculator).__bases__[0].__name__)
print(s)