Task: Program Execution
Input (English): 2, 10, ['1305', '1075', '6367', 'B', 'P', '467', '3121', 's', 'i', '87', '5737', '9369', 'h', 'C', 'D']
Output (English): 87, i, s, 3121, 467, P, B, 6367, 1075