from math import sqrt, ceil print(ceil(sqrt(float(input()) / 3)))