Task: Program Execution
Input (English): 7207, N, N, 2823, 79, G, T, 8285, 1367, 2765, 6139, 3745, 5047, R, 1441, 4163, S, x, m, V, O, Q, 777, 8183
Output (English): 7207, 2823, 79, 8285, 1367, 2765, 6139, 3745, 5047, 1441, 4163, 777, 8183