import math print(math.ceil((int(input())/3)**.5))