You have four coins, each of which weighs either 9 grams or 10 grams (they could all be 9s, or three 9s and a 10, or ...). You also have accurate scale, which will tell how many grams the items you put upon it weigh. How can you find out the weight of each coin (i.e., all four of them) with just three weighings?