#include<bits/stdc++.h>

using namespace std;

//2 --> 1
//3 --> 1
//4 --> 2
//5 --> 2
//6 --> 2
//...
//8 -->2
//9 --> 2
//10 --> 3

int main(){

  long long n;
  cin >> n;

  long long step=3;
  long long weighings=1;
  while(n > step){
    step*=3;
    weighings++;
  }
  cout << weighings << '\n';


  return 0;
}