Pošljite SMS: Optimal resource allocation