import math
N = int(input())
print(math.ceil((N/3)**(1/2)))