Task: Program Execution
Input (English): 1, 9, ['C', '4185', 'S', '1827', 'P', 'E', '9879', '9881', '795', '5787']
Output (English): 79598819879EP1827S4185C