#include <iostream>
using namespace std;

int main()
{
  long long int n;
  cin>>n;
  int count=0;

  while(n!=1){
    if(n%3==1){
      n+=2;
    }else if(n%3==2){
      n++;
    }
    n/=3;
    count++;
  }

  cout<<count<<endl;

  return 0;
}