Task: Program Execution
Input (English): 1, 3, ['8597', '963', '877', '1959', 'G', '1849', '599', '3915', '3235', 'G', 'S', 'Q', 'R', '1095']
Output (English): 8597, 963, 877