When I get a little money I buy books, and if any is left I buy food and clothes

When I get a little money I buy books, and if any is left I buy food and clothes.