Task: Program Execution
Input (English): Y, 7289, 7957, 7047, 6347, J, s, s, v, 7389, 4953, 9783, K, 2319, V, Q, 5309, D, 7801, A
Output (English): 7289, 7957, 7047, 6347, 7389, 4953, 9783, 2319, 5309, 7801