# 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)
IyBQbGF5Z3JvdW5kIGZvciBodHRwczovL3N0YWNrb3ZlcmZsb3cuY29tL2EvNTYzMTM3MTAvMTE0NTg5OTEKCgppbXBvcnQgbWF0aAoKCngxID0gaW50KGlucHV0KCJFbnRlciBmaXJzdCBudW1iZXI6XG4iKSkKeDIgPSBpbnQoaW5wdXQoIkVudGVyIHNlY29uZCBudW1iZXI6XG4iKSkKCnByaW50KCIgeFx0eSIpCmZvciB4IGluIHJhbmdlKHgxLCB4MiArIDEpOgoJdHJ5OgoJCWZvcm11bGEgPSBtYXRoLnNxcnQoeCoqMiArIDMqeCAtIDUwMCkKCQlwcmludCgiJWRcdCUuMmYiICUgKHgsIGZvcm11bGEpKQoJZXhjZXB0IFZhbHVlRXJyb3I6ICAjIFNxdWFyZSByb290IG9mIGEgbmVnYXRpdmUgbnVtYmVyLgoJCXByaW50KCIlZFx0eHh4IiAlIHgpCg==