Task: Program Execution
Input (English): 4751, 6039, 5631, s, 9799, 1729, F, Q, 9615, B, 5387, 7731, 311, X, I
Output (English): 4751, 6039, 5631, 9799, 1729, 9615, 5387, 7731, 311