Task: Program Execution
Input (English): 5701, h, R, 693, Q, W, 2181, A, 2293, X, x
Output (English): 5701, 8, 18, 693, 17, 23, 2181, 1, 2293, 24, 24