eolymp
bolt
Try our new interface for solving problems
Problems

Perfect numbers

Perfect numbers

Number is called perfect if it equals the sum of all its divisors smaller than himself. Want to find all the perfect numbers from \textit{\textbf{M}} to \textit{\textbf{N}}. \InputFile In the first row are separated by a space of \textit{\textbf{M}} and \textit{\textbf{N}}. \textit{\textbf{M}} и \textit{\textbf{N}} целые; \textbf{1} ≤ \textit{\textbf{M}} ≤ \textit{\textbf{N}} ≤ \textbf{10^9}; (\textit{\textbf{N}} - \textit{\textbf{M}})·\textbf{Sqrt}(\textit{\textbf{N}}) ≤ \textbf{10^7}. \OutputFile In each row to derive one number in ascending order. If the perfect numbers in the interval not to withdraw "\textbf{Absent}".
Time limit 5 seconds
Memory limit 64 MiB
Input example #1
6 6
Output example #1
6