Task: Program Execution
Input (English): 7, ['Q', '1039', 'D', '1205', '9769', 'x', 'T', 'H', 'F', 'S', 'P', '9093', 'a', '729', '2431']
Output (English): H, F, S, P, 9093, a, 729, 2431