import math if __name__ == '__main__': n = int(input()) r = math.sqrt(n / 3) print(int(r + 1))