int search( int n )
{
int c=0,ge,shi,bai,b;
double a;
for(int i=101;i<=n;i++){
a=sqrt(i);
b=a;
ge=i%10;
shi=i/10%10;
bai=i/100;
if(a==b&&(ge==shi||ge==bai||shi==bai))
c++;
}
return c;
}