import math n=raw_input() r=int(math.sqrt(int(n)/3)) if r==0: print 1 else: print r