A pack of cards is composed of 40 cards: 4 aces, 4 twos, 4 threes, and so on up to 4 tens. In other words, we have 10 groups of cards such that each group contains 4 cards with the same value. Which is the minimum number of cards we have to extract from the pack (without looking at them) in order to be sure to have at least 4 cards with 4 different values?
(A) 5
(B) 21
(C) 9
(D) 17
(E) 43