ingresos =int(input("Ingresa los ingresos totales: "))
gastos = int(input("Ingresa los gastos totales: "))
nuevos_clientes = int(input("Ingresa el numero de clientes nuevos: "))
if (ingresos - gastos) > 10000 and nuevos_clientes > 50:
print("Trimestre exclente")
elif(ingresos - gastos) > 5000 and nuevos_clientes >=20:
print("Trimestre bueno")
elif (ingresos - gastos) > 0:
print("Trimestre regular")
else:
print("Trimestre Deficitario")