Task: Program Execution
Input (English): 2, 6, ['A', '1023', '8701', '6917', 'a', 'P', 'F', 'B', 'y', 'H', 'P', '3645']
Output (English): 1023, B