In a store, there are 9 headphones, 13 computer mice, and 5 keyboards for sale. Besides these, there are also 4 sets of "keyboard and mouse" and 5 sets of "headphones and mouse." How many ways can you buy three items: headphones, a keyboard, and a mouse? Answer: 646.