print("trimestre empresarial")
try:
ingresos = float(input("Ingreso totales: "))
gastos = float(input("Gastos totales: "))
clientes = int(input("Cantidad de clientes nuevos: "))
positivo = ingresos > 0 and gastos > 0 and clientes > 0 #Evaluamos que sean positovos los datos ingresados
total = ingresos - gastos
if positivo:
if total > 10000 and clientes > 50:
print("Trimestre Excelente")
elif total > 5000 and clientes >=20 :
print("Trimestre bueno")
elif total > 0:
print("Trimestre Regular")
else:
print("Trimestre Deficitario")
else:
print("Los datos ingresados deben ser mayor a 0")
except Exception as e:
print(f"Ocurrio un error inesperado, {e}")