n = int(input("Nhap n: "))
m = int(input("Nhap m: "))
sum = 0

for i in range(n,m):
	if i == 1:
		continue;
	sum = 1
	for j in range (2,i):
		if(i%j == 0):
			sum += j
	if sum == i:
		print(i)
34891ed24eda96e1122fca72e340719aa9cf05e0
<mask token>

<mask token>
for i in range(n, m):
    if i == 1:
        continue
    sum = 1
    for j in range(2, i):
        if i % j == 0:
            sum += j
    if sum == i:
        print(i)

n = int(input('Nhap n: '))
m = int(input('Nhap m: '))
sum = 0
for i in range(n, m):
    if i == 1:
        continue
    sum = 1
    for j in range(2, i):
        if i % j == 0:
            sum += j
    if sum == i:
        print(i)

n = int(input("Nhap n: "))
m = int(input("Nhap m: "))
sum = 0

for i in range(n,m):
	if i == 1:
		continue;
	sum = 1
	for j in range (2,i):
		if(i%j == 0):
			sum += j
	if sum == i:
		print(i)