Enviar por SMS: Greedy and dynamic programming by calculation