from math import * n = int(raw_input("")) if n == 1: print 1 else: print floor(log(n - 1, 3)) + 1