Task: Program Execution
Input (English): 10, 12, ['V', '897', '4475', 'm', '9003', '9295', '5123', 'U', '4527', '1797', '9105', '1861', '67', 'K', 'M', '5965', '8145']
Output (English): 1797, 9105, 1861