Task: Program Execution
Input (English): J, k, a, 987, j, 1813, a, 4593, 1911, 6171, b, P, c, 4749, w, X, T
Output (English): 987, 1813, 4593, 1911, 6171, 4749