URI 1558 : Sum of Two Squares

Solution :