Task: Program Execution
Input (English): 3, 10, ['M', '7757', 'r', 'R', 'Q', '4305', 'R', 'z', 'd', '2603', '493', '2861']
Output (English): rRQ4305Rzd2603