def main(): n =int(input()) r = (n / 3) ** 0.5 print(r + 1) if __name__ == "__main__": main()