print((function (n) return math.ceil(math.sqrt(n/3)) end)(io.stdin:read("*n")))