Task: Program Execution
Input (English): 2, 5, ['Z', '8647', 'B', 'W', 'S']
Output (English): 8647BWS