Task: Program Execution
Input (English): 4367, 5139, 433, 919, 8123, 5899, x, V, 2961, A, D, 4265, 3893, B, F, 2153, E, 4273, 6987, r, r, N, G
Output (English): 4367, 5139, 433, 919, 8123, 5899, 24, 22, 2961, 1, 4, 4265, 3893, 2, 6, 2153, 5, 4273, 6987, 18, 18, 14, 7