#include using namespace std; int main() { int n; cin>>n; int nr=1,cnt=1; while( (nr<<1) <= n ){ ++cnt; nr<<=1; } cout<>=1; } cout<<'\n'; }