Task: Program Execution
Input (English): 667, b, b, N, 807, P, 1623, 7419, M, 8373, m, a, n, 7513
Output (English): 667, 2, 2, 14, 807, 16, 1623, 7419, 13, 8373, 13, 1, 14, 7513