Task: Program Execution
Input (English): 1, 6, ['5471', '621', 'R', '9847', '821', '8585', '7765', '9933', '4247', '7233', '855', '9865', 'g', '6619', 'I', 'Q', '8709', '2461', '2835']
Output (English): 5471, 7765, g, 2835