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