Task: Program Execution
Input (English): X, 3997, J, 6673, 3275, 7787, o, O, y, 3109, 2047, N, 7543, h, Q, 1031
Output (English): 24, 3997, 10, 6673, 3275, 7787, 15, 15, 25, 3109, 2047, 14, 7543, 8, 17, 1031