Task: Program Execution
Input (English): 4617, 5975, 7685, 5505, w, 3199, g, f, M, W, G
Output (English): 4617, 5975, 7685, 5505, 23, 3199, 7, 6, 13, 23, 7