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