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