import math S = float(raw_input()) r = math.sqrt(S/3)+1 print int(r)