Task: Program Execution
Input (English): r, 2489, s, 961, g, 933, 9693, 3077, N, T, 2711, 5517, n, 7079, 3377, d, Q, 6693, L, F, 5541, 1245, 6499
Output (English): 18, 2489, 19, 961, 7, 933, 9693, 3077, 14, 20, 2711, 5517, 14, 7079, 3377, 4, 17, 6693, 12, 6, 5541, 1245, 6499