Task: Program Execution
Input (English): N, 197, R, 1201, d, 7197, X, E, 8201, O, 7285, p, B, n, n, Z, A, 965, 8887, 5067, Z, M
Output (English): 14, 197, 18, 1201, 4, 7197, 24, 5, 8201, 15, 7285, 16, 2, 14, 14, 26, 1, 965, 8887, 5067, 26, 13