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