[SRM582 Div2 250] SemiPerfectSquare