Task: Program Execution
Input (English): 3, 4, ['m', 'S', '7931', '8367', '3715']
Output (English): 8367, 7931