Four students are competing in a spelling bee. The top three students will receive a medal. How many different ways can they finish 1st, 2nd, and 3rd?