Task: Program Execution
Input (English): 3, 5, ['M', 's', 'w', '1419', 'S', 'v', 'Q']
Output (English): S1419w