import math n = int(input()) print(max(1,int(math.sqrt(n/3))))