Task: Program Execution
Input (English): 1339, 9291, 1919, Y, M, 2577, 321, T, 2773, 245, X, 9563, 9877, 4495, v, S, n, 5091, 5235, M, 6405, 2105, 9233, 1829
Output (English): 1339, 9291, 1919, 2577, 321, 2773, 245, 9563, 9877, 4495, 5091, 5235, 6405, 2105, 9233, 1829