#include <stdio.h>
#include <stdlib.h>
#include <math.h>

__attribute__((noinline))
int getTexSize(int n)
{
    if((n & (n - 1)) != 0) // determining if an integer is not a power of 2
    {
        n-- ;
        n |= n >> 1;
        n |= n >> 2;
        n |= n >> 4;
        n |= n >> 8;
        n |= n >> 16;
        n++;// this is the nearest higher power of 2
        n >>= 1;//this is the nearest lower power of 2 value
    }
    //printf("----%f----",(double)n);
    return sqrt((double)(n>>2));//divide by 4, then get its square root
}



int main(int argc, char **argv) {
         int n =  atoi(argv[1]); //257;
        
         printf("----%d----",getTexSize(n));
        return 0;

}
