there n water tank row ith contain a_i liter water the tank number 1 n leave rightyou perform follow operation choose subsegment l r 1le l le r le n redistribute water tank l l1 dot r evenly in word replace a_l a_l1 dot a_r fraca_l a_l1 dot a_rrl1 for example volume 1 3 6 7 choose l 2 r 3 new volume water 1 45 45 7 you perform operation number timeswhat lexicographically small sequence volume water achieveas remindera sequence lexicographically small sequence b length following hold leftmost position b differ sequence small element correspond element b