Почему выдаёт Runtime ошибку?
Как то такimport math
import os

INPUT_FILE = 'input.txt'
OUTPUT_FILE = 'output.txt'
NUMBER_THRESHOLD = 1000

if __name__ == '__main__':
    if not os.path.exists(INPUT_FILE) or not os.path.isfile(INPUT_FILE):
        raise FileNotFoundError
    with open('input.txt') as file:
        text = file.read()
    if not text:
        raise ValueError('File is empty')
    try:
        a, b, c, *_ = [int(n) for n in text.strip().split(" ") if n.isdigit() and int(n) < NUMBER_THRESHOLD]
    except ValueError:
        raise ValueError('Wrong input data')

    out = ""
    if not (a < b + c and b < a + c and c < a + b):
        out = "-1"
    else:
        p = 0.5 * (a + b + c)
        h = 2 * math.sqrt(p * (p - a) * (p - b) * (p - c)) / a
        out = f'{str(a + b + c)} {("%.5f" % (a * h / 2))}'

    with open(OUTPUT_FILE, 'w') as file:
        file.write(out)
трейс ошибки-то где?