io.write(math.floor(0.5 + math.sqrt(io.read("*n") / 3)))