#include #include using namespace std; int howMany(long long n){ if(n == 1) return 0; int l = 1, c = 1; while(l*3 < n){ l*= 3; c++; } return c; } int main(){ long long n; cin >> n; cout << howMany(n); }