#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <queue>
#include <vector>
using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)

int main() {
	double n;
	scanf("%lf", &n);
	int ans = 1;
	while (1) {
		if (n <= 3)break;
		n /= 3;
		ans++;
	}
	printf("%d\n",ans);
	return 0;
}