Simple combinatorial solution