ex1.in (65B)
1 6 2 5 3 aaabc 4 3 5 acb 6 3 7 bac 8 4 9 zbca 10 15 11 czddeneeeemigec 12 13 13 cdefmopqsvxzz