Zaslat SMS: Nonlinear and dynamic programming