for x in range(1, 1001):
    sum = 0
    for i in range(1, x):
        if x % i == 0:
            sum += i
    if x == sum:
        print(x)

9a3e6dd549cd1c8824048f681a22b314f435d271
<mask token>

for x in range(1, 1001):
    sum = 0
    for i in range(1, x):
        if x % i == 0:
            sum += i
    if x == sum:
        print(x)
