E. Combinatorics Problem