Task: Program Execution
Input (English): 2, 18, ['507', 'X', 'A', 'o', '8305', '6763', 'W', '4941', 'v', 't', '1697', '7351', 'v', '5259', 'r', '1513', 'x', '6573', 'H', '7483', 'h']
Output (English): 6573x1513r5259v73511697tv4941W67638305oAX