import math print int(math.ceil(math.log(int(input()),3)))