Over a three-week period, the price of an ounce of gold increased by 25% in the first week, decreased by 20% in the following week, and increased by 5% in the third week. If the price of gold was \( G \) dollars per ounce at the beginning of the three weeks, what was the price, in terms of \( G \), at the end of the three weeks?