SP11355 SQ2SQ - SQUARE TO SQUARE

Description

There are Squares whose digits can be rearranged to make another squares.Lets call them S2S numbers. for ex. 144->441

Input Format

Single line containing two integers X Y(Xth,Yth term in the list of S2S numbers).

Output Format

Print all the numbers from Xth to Yth Term of S2S numbers list(both inclusive).