Task: Program Execution
Input (English): 2, 5, ['1415', 'g', '3621', '8487', 'S', '149', '1319']
Output (English): S84873621g