import math
n = int(input())

print(round(math.sqrt(n / 3)))