~/algor $ cat contests/round-8/E
E. Perfect squares in a range
Problem E
ICPC rules
1000 ms
64 MB
Two positive integers and are given. Print in increasing order all perfect squares ( — squares of positive integers) from to (both inclusive). If there are none, print .
Input
One line with two positive integers: and .
Output
The perfect squares separated by spaces, or .
Note
Examples
Input #1
10 50
Output #1
16 25 36 49
Input #2
17 24
Output #2
-1