Alma was given some money as a gift and deposited it into a savings account. She makes a withdrawal of the same amount at the end of each month. At the end of the 5th month, her balance was $442. At the end of the 13th month, her balance was $226. How much money was Alma given as a gift?