#yuki_508 import math n=float(raw_input()) res=math.ceil((n/3)**0.5) print int(res)