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