#include using namespace std; int n, sol; int main() { cin>>n; for (int i=0; i<32; ++i) if (n&(1<