Task: Program Execution
Input (English): 4, 7, ['7187', 'M', 'J', '3491', 'v', 'D', '6751', 'c', 'a', '9383', 'g']
Output (English): 1576Dv1943