Task: Program Execution
Input (English): 1, 5, ['8359', 'S', '1579', 'P', '8987', 'e', 'h']
Output (English): 7898P9751S9538