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