#include #define rep(i, n) for (int i = 0; i < (n); ++i) using std::cin; using std::cout; using ll = long long; int main() { ll n; cin >> n; int x = log2(n); cout << (1ll<