import math n=raw_input() print int(math.sqrt(int(n)/3))