A Dove pitied her condition , and threw into the river a small bough , by means of which the Ant gained the shore .