Task: Program Execution
Input (English): 2, 3, ['B', '781', '9009', 'T', 'W', '1597', 'd', '1535']
Output (English): 781, 9009