def find_bounds(f, y):
	"""
	Find approximate bounds for binomial search.
	"""
	x = 1
	while((f(x) < y)  and (x<1000483646) ):
		x = x * 2
	lo = -100 
	if (x ==1):
		lo = -100
	else:
		lo = x/2
	if(x > 1000):
		x = min(x,2047483646)
	return lo, x