# Playground for https://stackoverflow.com/a/56313710/11458991


import math


x1 = int(input("Enter first number:\n"))
x2 = int(input("Enter second number:\n"))

print(" x\ty")
for x in range(x1, x2 + 1):
	try:
		formula = math.sqrt(x**2 + 3*x - 500)
		print("%d\t%.2f" % (x, formula))
	except ValueError:  # Square root of a negative number.
		print("%d\txxx" % x)
