Task: Program Execution
Input (English): 5, 5, ['8905', '459', 'o', '5443', '1477', '5311', 'B', '309', 'M', 'N', 'G', '9351', 'T', '4463', '7515', 's', '2169', 'C']
Output (English): 1477