#include <stdio.h>
int bitcount(unsigned int a){
int i =0;
while(a){
i++;
a &= (a-1);
}
return i;
}
void lower(char* str){
char c;
int i = 0;
while ((c = str[i]) != '\0' && c!='\n'){
(c > 'A' && c < 'Z') ? (str[i] = c - 'A' + 'a') : (str[i] = c);
i++;
}
}
int main(){
char test[50] = "HEllo wolrd";
lower(test);
return 0;
}
CiNpbmNsdWRlIDxzdGRpby5oPgppbnQgYml0Y291bnQodW5zaWduZWQgaW50IGEpewoJaW50IGkgPTA7Cgl3aGlsZShhKXsKCQlpKys7CgkJYSAmPSAoYS0xKTsKCX0KCXJldHVybiBpOwp9CnZvaWQgbG93ZXIoY2hhciogc3RyKXsKCWNoYXIgYzsKCWludCBpID0gMDsKCXdoaWxlICgoYyA9IHN0cltpXSkgIT0gJ1wwJyAmJiBjIT0nXG4nKXsKCQkoYyA+ICdBJyAmJiBjIDwgJ1onKSA/IChzdHJbaV0gPSBjIC0gJ0EnICsgJ2EnKSA6IChzdHJbaV0gPSBjKTsKCQlpKys7Cgl9Cn0KaW50IG1haW4oKXsKCWNoYXIgdGVzdFs1MF0gPSAiSEVsbG8gd29scmQiOwoJcHJpbnRmKHRlc3QpOwoJbG93ZXIodGVzdCk7CglwcmludGYodGVzdCk7CglyZXR1cm4gMDsKfQ==