Task: Program Execution
Input (English): T, O, 4523, T, 1041, t, X, Q, 7999, 6497, 7573, d
Output (English): 4523, 1041, 7999, 6497, 7573