Task: Program Execution
Input (English): 2, 6, ['l', 'n', 'J', 'X', '5189', 'z']
Output (English): 5189