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