<gh_stars>0
def compute():
	ans = max(i * j
		for i in range(1000, 10000)
		for j in range(1000, 10000)
		if str(i * j) == str(i * j)[ : : -1])
	return str(ans)


if __name__ == "__main__":
	print(compute())

def compute():
	ans = max(i * j
		for i in range(1000, 10000)
		for j in range(1000, 10000)
		if str(i * j) == str(i * j)[ : : -1])
	return str(ans)


if __name__ == "__main__":
	print(compute())