Task: Program Execution
Input (English): 9727, l, d, Q, O, 949, m, 1299, n, 9369, 7843, 7217, r, t, k, m, A, 6407, 4167
Output (English): 9727, 949, 1299, 9369, 7843, 7217, 6407, 4167