#include <bits/stdc++.h>
using namespace std;
int main(void){
    long long int n;
    cin>>n;
    int count=0;
    while(n>1) {
        if (n%3==0) {
            n=n/3;
        } else {
            n=(n/3)+1;
        }
        count++;
    }
    cout<<count<<endl;
}
