Task: Program Execution
Input (English): 3, 10, ['5851', 'd', '5105', '6021', 'P', 'o', 'B', 'p', '1969', 'X', '4555', '3075', '3677', 'W']
Output (English): X, 1969, p, B, o, P, 6021, 5105