Task: Program Execution
Input (English): 6, 12, ['V', '2125', '9769', '2289', '1425', 'Z', '505', 'P', 'f', '1179', '7039', '9933']
Output (English): Z, 505, P, f, 1179, 7039, 9933