#include <cstdlib>
#include <iostream>
using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int n;
	cin >> n;

	for(int i = 0;; ++i) {
		if(n == 1) {
			cout << i << endl;
			break;
		}
		n = (n + 2) / 3;
	}

	return EXIT_SUCCESS;
}