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