#include <stdio.h>
/*Расстояние Хэмминга*/
int distance(int u, int v){
int d = 0;
while(u > 0){
d = d + ((u&1) ^ (v&1));
u = u >> 1;
v = v >> 1;
}
return d;
}
void main(void){
/*11011 и 10001*/
printf("%d", distance
(27, 17)); }
I2luY2x1ZGUgPHN0ZGlvLmg+CgovKtCg0LDRgdGB0YLQvtGP0L3QuNC1INCl0Y3QvNC80LjQvdCz0LAqLwppbnQgZGlzdGFuY2UoaW50IHUsIGludCB2KXsKCWludCBkID0gMDsKCXdoaWxlKHUgPiAwKXsKCQlkID0gZCArICgodSYxKSBeICh2JjEpKTsKCQl1ID0gdSA+PiAxOwoJCXYgPSB2ID4+IDE7Cgl9CglyZXR1cm4gZDsKfQoKdm9pZCBtYWluKHZvaWQpewoJLyoxMTAxMSDQuCAxMDAwMSovCglwcmludGYoIiVkIiwgZGlzdGFuY2UoMjcsIDE3KSk7Cn0=