The total gain lose between each two machines. 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 adjacent washing machines at the same time. Contributions are very welcome.