Task: Program Execution
Input (English): 2, 3, ['I', '5847', 's', 'P', 'M', 'F', '2047', 'f', 'X', 'y', 'Z', 'w']
Output (English): 5847s