[5, 2, 1, 4, 3] YES 6 0 1 2 0 1 0