#include<iostream>
using namespace std;
int main()
{
  int ans=1,n;
  cin>>n;
  while(1){
    if(n<=3)break;
    if(n%3){
      n/=3;
      n++;
    }else{
      n/=3;
    }
    ans++;
  }
  cout<<ans<<endl;
}