Combinations of only two kinds of elements