After the Persian War, what did Sparta, Athens, and other Greek communities collect to ward off future external attacks?

ASlaves
BCorn and other grains
CMoney
DResources for building walls