import math n = int(input()) r = math.ceil(math.sqrt(n/3)) print(r)