#include int main(){ int64_t n; std::cin>>n; int64_t a=n,b=n,c=0; for(int i=0;i<=30;++i)if((n>>i)&1){ b -= 1<