Zaslat SMS: Dynamic programming. Examples involving discrete variables