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