Task: Program Execution
Input (English): 6, 12, ['B', '1191', 'G', '9245', '7903', '5747', '8983', 'S', 'x', 'f', 'v', 'a', '4381', '335', '8933', 'c']
Output (English): 5747, 8983, S, x, f, v, a