#include using namespace std; int main() { long long a,nr = 0; cin >> a ; for(int i = 0; i <= 31; ++i) nr += ((a & (1<