n = int(input()) import math r = math.sqrt(n/3) if 0 < r < 1: print(1) else: print(int(r))