Task: Program Execution
Input (English): 3, 5, ['2999', 'c', '9245', '3829', '2679', '2211', 'F', '7223', '1605']
Output (English): 9245, 3829, 2679