Task: Program Execution
Input (English): 5, 10, ['6181', '7155', 'O', '8073', '6583', '5927', '9221', '5073', 'g', 'J', 'z', 'T']
Output (English): 6583, 5927, 9221, 5073, g, J