Task: Program Execution
Input (English): 6, ['R', 'S', '9997', '4531', 'H', '7881', '1267', '6877', '3689', 'g', 'Z', '2523', '5077', '8549', '2553', '8949', 'F', '3169', '4785']
Output (English): R, 1267, 5077, 4785