Task: Program Execution
Input (English): 8, 9, ['6221', 'D', '3395', 'Y', '7021', '6597', '4173', '1339', 'O', 'R', '9967']
Output (English): O9331