Task: Program Execution
Input (English): 3, 6, ['r', '8615', '4477', 'k', 'Z', 'B']
Output (English): 4477