Αποστολή με SMS: Resource windfalls, optimal public investment and redistribution