A company using the periodic inventory system has inventory costing $142 on hand at the beginning of a period. During the period, merchandise costing $432 is purchased. At year-end, inventory costing $400 is on hand. The cost of goods sold for the year is