Task: Program Execution
Input (English): M, h, W, 9627, V, A, J, 211, 9271, 1471, 405
Output (English): 13, 8, 23, 9627, 22, 1, 10, 211, 9271, 1471, 405