Task: Program Execution
Input (English): 3, 5, ['1061', '8041', 'X', '8871', '7845', '3255']
Output (English): 7845, 8871, X