Task: Program Execution
Input (English): 3, 5, ['v', 'j', 'X', '789', 'v', 'K', 'd', 'i', 'S']
Output (English): X789v