Given an odd prime p.
You are to tell whether p can be written into form a^2+b^2 (0
输出
For each number p,
if p can be written into form a^2+b^2 (0<=b),
output one line that contains "Legal a b",
and if not just output one line that contains "Illegal".
For a certain p that can be written into the form described above, any pair of a,b (0<=b) will do.