#include <iostream>

using namespace std;

void solve()
{
	double N;
	cin >> N;
	int count = 0;
	while(N > 1.0)
	{
		N /=  3;
		++count;
	}
	cout << count << endl;
}

int main()
{
	solve();
	return(0);
}