It s impossible to make all the three washing machines have the same number of dresses. The range of dresses number in a super washing machine is 0 1e5. The range of n is 1 10000.