A company using the periodic inventory system has the following account balances: Inventory at the beginning of the year, $4,437; Freight-In, $567; Purchases, $13,447; Purchases Returns and Allowances, $2,866; Purchases Discounts, $493. The cost of merchandise purchased is equal to ________.