Task: Program Execution
Input (English): 5, 12, ['6701', '3911', '1591', '3829', '3381', 'J', '8635', 'r', '8867', 'N', '2397', '1677', 'c', '9799']
Output (English): 77617932N7688r5368J1833