#include using namespace std; int main(){ int p;cin>>p;p=(int)(pow(2,p)+0.1)-1; int ans=0; while(p!=0){ ans+=p%2; p=(p-p%2)/2; } cout<