Two squares or not two squares

Problem Name:
Two squares or not two squares
Site:Spoj
Links:
Tags:
Problem setters: