import math n = int(input()) print(math.floor(math.sqrt(n / 3))+1)