int calc(int a,int b)
{
int xtemp=a^ b;
int atemp = a & b;
if (atemp == 0)
return xtemp;
return calc(xtemp, atemp << 1);
}

int calc(int a,int b)
{
int xtemp=a^ b;
int atemp = a & b;
if (atemp == 0)
return xtemp;
return calc(xtemp, atemp << 1);
}