Task: Program Execution
Input (English): 2, 5, ['8271', '2137', '5441', '1731', 'S', 'm', '8463', 'l', '761', '1385']
Output (English): 9309