#include <iostream>
using namespace std;

int main()
{
  long long int N;
  cin >> N;
  long long int x = 3;
  long long int ans = 1;
  while(N > x){
    x *= 3;
    ans++;
  }
  cout << ans << endl;
}