int secret(int x)
{
int I, j;
I = 2 * x;
if (I > 10)
j=x/2;
else
j = x/3;
return j - 1;
}