Task: Program Execution
Input (English): 3, 5, ['3331', 'r', 'R', '5277', 'O', '7319', 'Y', '6571', '2817', 'f', '4587', 'u', '6707']
Output (English): O7725R