#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int64_t n; cin >> n; int Tmax = n - 1; if (n & 1) { cout << Tmax << " " << Tmax << endl; } else { int Tmin = 0; while (n > 0) { n = n >> 1; Tmin++; } cout << Tmin << " " << Tmax << endl; } }