Task: Program Execution
Input (English): w, 6387, 8897, M, F, G, U, T, 1943, 6571, 5147
Output (English): 23, 6387, 8897, 13, 6, 7, 21, 20, 1943, 6571, 5147