Four-digit Armstrong numbers#8642

Four-digit Armstrong numbers

1 second
128 megabytes
Very easy

A four-digit number is called an Armstrong number if the sum of the fourth powers of its digits equals the number itself.

For example: 8208 = 8^4 + 2^4 + 0^4 + 8^4, therefore, is an Armstrong number.

Print all Armstrong numbers in the range from to .

Input

Two integers and b~(1000 \le a \le b \le 9999).

Output

Print all Armstrong numbers in a single line in the range from to .

Examples

Example 1

Loading
Loading