import math n = int(input()) print(math.ceil(math.sqrt(n/3)))