Task: Program Execution
Input (English): 8741, A, 9651, 4189, 1367, y, 7167, 4309, 2361, R, 5889, M, 7867, a, i, O, 5675, 983, v, G, V
Output (English): 8741, 1, 9651, 4189, 1367, 25, 7167, 4309, 2361, 18, 5889, 13, 7867, 1, 9, 15, 5675, 983, 22, 7, 22