/** * author: shu8Cream * created: 05.02.2021 22:21:01 **/ #include using namespace std; #define rep(i,n) for (int i=0; i<(n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using P = pair; using vi = vector; using vvi = vector; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll n; cin >> n; int cnt=0; while(n/=2){ cnt++; } cout << pow(2,cnt) << endl; }