#include <cstdio>
using namespace std;

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