Task: Program Execution
Input (English): 3, 3, ['O', '3051', 'B', '1981', 'O', 'N', 'd', 'Q', '3311', '7357', '9955', 'd', 'W', '2181', '3741', 'U', '4483']
Output (English): B