#include using namespace std; #define int long long signed main(){ int N; cin>>N; int ans = 1; while(ans*2 <= N) ans*=2; cout<