Task: Program Execution
Input (English): 3, 5, ['9045', 'D', '8255', '3825', 'm', '1247', 'p', '965', '7119', 'X', '4029', '4751', 'M', '3625', 'v', 'G', '9933']
Output (English): 8255, 965, M