Task: Program Execution
Input (English): 5, 6, ['P', 'm', 'D', '9859', '857', 'c', '9621', '7077']
Output (English): c857