#include<bits/stdc++.h>
#define ll long long
using namespace std;
double log_calc(ll a,ll b){
  return (double)(log(b))/(log(a));
}
int main(){
  int n;cin>>n;
  int cnt=0;
  while(cnt<log_calc(3,n)){
    cnt++;
    // cout<<cnt<<" "<<log_calc(3,n)<<endl;
  }
  cout<<cnt<<endl;
  return 0;
}

