Task: Program Execution
Input (English): 3, 3, ['W', '6085', '143', 'z', '5141']
Output (English): 143