N = int(input()) print(max(1, int((N/3)**0.5)))