Task: Program Execution
Input (English): 3, 7, ['B', '7081', '6105', '8171', '161', 'y', '2129']
Output (English): 16566