mfw cuba is magnitudes poorer than its neighbour, the USA but can provide housing and healthcare for everyone in it, and even a surplus of 50k doctors they export to the third world on demand.
They also provide food for everyone. There are government "stores" where citizens receive their weekly allotment of eggs, produce, dairy, flour, and occasionally meat. Certain things can only be bought but there's a standard that everyone has access to something even when some foods can be scarce.