Task: Program Execution
Input (English): 487, U, u, 7417, b, a, T, 7631, 1793, D, 8827, T, p, N, 5549, T
Output (English): 487, 7417, 7631, 1793, 8827, 5549