IngresoTotal=float(input("Ingrese el ingreso total del hogar: "))
GastoTotal=float(input("Ingrese el gasto total del hogar: "))
NuevosClientes= int(input("Ingrese la cantidad de nuevos clientes: "))
if(IngresoTotal-GastoTotal)>10000 and NuevosClientes>50:
print("Trimestre Excelente")
elif (IngresoTotal-GastoTotal)>5000 and NuevosClientes>=20:
print("Trimestre Bueno")
elif (IngresoTotal-GastoTotal)>0:
print("Trimestre Regular")
else:
print("Trimestre Deficitario")