Task: Program Execution
Input (English): 2, 1, ['5861', 'B', '573', 'Q', 'P', 'Z', '7511', '8657', '351', '1531', '6147']
Output (English): B, 573, Q, P, Z, 7511, 8657, 351, 1531, 6147