import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) print(int((n/3+1)**0.5))