#include using namespace std; typedef long long ll; ll N; int main(){ cin>>N; ll ans=1; for(int i=0;i<=60;i++) if(N&1ll<