Task: Program Execution
Input (English): 3, 5, ['5721', '2491', 'O', '9721', 'Z']
Output (English): Z9721O