#include using namespace std; ifstream f("a.in"); ofstream g("a.out"); long long n,nr; int main() { f>>n; while(n) { if(n%2==1) { nr++; } n/=2; } g<