For each move you could choose any m 1 m n washing machines and pass one dress of each washing machine to one of its adjac. It s impossible to make all the three washing machines have the same number of dresses.