Task: Program Execution
Input (English): 2, 5, ['1549', 'p', 'M', 'x', 's', '9315', '8653', '2225', '4783', '729']
Output (English): sxMp