n = int(input()) r = n**0.5/3**0.5 ans = int(r) if ans == 0: print(1) else: print(ans)