ingresos = float(input("Ingrese los ingresos totales: "))
gastos = float(input("Ingrese los gastos totales: "))
clientes = int(input("Ingrese el número de nuevos clientes: "))
if ingreso-gastos > 10000 and clientes > 50:
print("Trimestre Excelente")
elif ingreso-gastos > 5000 and clientes >= 20:
print("Trimestre Bueno")
elif ingreso-gastos > 0:
print("Trimestre Regular")
else:
print("Trimestre Deficitario")