Task: Program Execution
Input (English): 9247, 7329, d, 4473, q, 5531, v, Q, 6371, V, 4085, U, s, P, 5851, 4527, 8969, 4827, 5089, C, A, 9797, 1607
Output (English): 9247, 7329, 4, 4473, 17, 5531, 22, 17, 6371, 22, 4085, 21, 19, 16, 5851, 4527, 8969, 4827, 5089, 3, 1, 9797, 1607