#include <iostream>

using namespace std;

int solve(int n) {
  if (n < 2) {
    return 0;
  }
  return 1 + solve((n + 2) / 3);
}

int main() {
  int N;
  cin >> N;
  int ans = solve(N);
  cout << ans << endl;
 
  return 0;
}