def sumproperdivisors(num):
    sum = 0
    for x in range(1, (int((num / 2)) + 1)):
        if ((num % x) == 0):
            sum += x
    return sum
def sumproperdivisors(num):
    sum = 0
    for x in range(1, (int((num / 2)) + 1)):
        if ((num % x) == 0):
            sum += x
    return sum