Task: Program Execution
Input (English): 9243, 1619, 7235, j, 3389, K, 497, I, 7787, 1423, x, P, 1227, T, 7937, J, i, e, S
Output (English): 9243, 1619, 7235, 3389, 497, 7787, 1423, 1227, 7937