#include using namespace std; int main(){ int n;cin>>n; for(int i=0;;i++){ int k=pow(2,i); if(k/2