Task: Program Execution
Input (English): 3, 3, ['S', '4287', 'O', 'o', '9571', 'F', 'H', 'H', '3167', 'N']
Output (English): O