Al saves pennies. He agreed to give 3/5 of his pennies to Bev if she would give 3/5 of what she got from Al to Carl and if Carl in turn would give 3/5 of what he got from Bev to Dani. Bev, Carl, and Dani agreed and Dani received 297 pennies. How many pennies did Al have initially?