Task: Program Execution
Input (English): S, 8987, 3131, T, 6289, 7191, 6557, 1257, 1681, 2671, 6829, 9565, 6009, h, u, j, T, 1673, 4329, g, A, e, a, 9887
Output (English): 8987, 3131, 6289, 7191, 6557, 1257, 1681, 2671, 6829, 9565, 6009, 1673, 4329, 9887