Task: Program Execution
Input (English): 6, ['J', 'V', '9701', '5395', '3173', '5319', '583', '8387', 'b', 'n', 'Z', 'O']
Output (English): J, 583