Task: Program Execution
Input (English): 1, 3, ['3181', 'B', 'm', '701', 'v', '731', '7961', '2101', '7711', 'O', '3915', '5051', 'q', 'A', 'D', '5615', '5063', 'O']
Output (English): 3181Bm