arseniy grownup independent his mother decide leave m day leave vacation she prepare lot food leave money wash Arseniys clothe ten minute leave realize useful prepare instruction particular clothe wear day absent Arseniys family bit weird clothe enumerate for example Arseniys n sock assign unique integer 1 n thus thing mother write integers li ri days index sock wear day obviously li stand leave foot ri right each sock paint k colorsWhen mother leave Arseniy notice accord instruction wear sock different color day of course terrible mistake cause rush arseniy smart boy magical coincidence posse k jar paint k colorsArseniy want repaint sock way m day follow mother instruction wear sock color as go busy day time change color sock finalize color nowthe new computer game Bota3 realise Arseniy can not wait play what minimum number sock need color change order possible follow mother instruction wear sock color m day