#include <stdio.h> int func(int v) { int c; for(c=0;v;c++) v&=v-1; return c; } void main( ) { printf("%d\n",func(16640)); }