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