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