def compute(n):
	if n <= 0:
		return 0
	else:
		if n == 1:
			x = 1
		else:
			x = 1
			y = 2
			while x <= n:
				z = x
				x = z * y
				y = z
				if x == y * z:
					return x
	return x
def compute(n):
	if n <= 0:
		return 0
	else:
		if n == 1:
			x = 1
		else:
			x = 1
			y = 2
			while x <= n:
				z = x
				x = z * y
				y = z
				if x == y * z:
					return x
	return x