Task: Program Execution
Input (English): 7151, 3657, C, 5875, 497, Q, 9035, G, H, 9507, 5893, 9963, Z, c, C, s, 1307, w, 3779, C, X
Output (English): 7151, 3657, 3, 5875, 497, 17, 9035, 7, 8, 9507, 5893, 9963, 26, 3, 3, 19, 1307, 23, 3779, 3, 24