Task: Program Execution
Input (English): 12, 16, ['Q', '1505', 'G', '8979', 'l', '2649', 'k', 'U', 'r', 'r', 'f', '4175', '8183', '9989', '8953', 'F']
Output (English): 4175, 8183, 9989, 8953, F