2 5 3 2 3 4 1 1 1 3 100 2 1 1 50 90 100
Case #1: 4 Case #2: 50 Hint In sample case #1, Alice could buy the first and the third stamp sets, which contain the first four kinds of stamp. Note that she gets two copies of stamp 3, but only the number of different kinds of stamps matters, not the number of stamps of each kind. In sample case #2, Alice could buy the first stamp set, which contains 50 different kinds of stamps.