Problem Statement
A perfect number is a positive integer that is equal to the sum of its proper divisors (excluding itself). For example, 6 is a perfect number because its divisors are 1, 2, and 3, and 1 + 2 + 3 = 6.
Task
Write a program that reads two integers A and B, and prints all perfect numbers in the range from A to B (inclusive), separated by spaces.
If there are no perfect numbers in the range, print nothing (just a blank line).