Task: Program Execution
Input (English): 4, 4, ['W', 'p', '8495', '5643']
Output (English): 5643