Task: Program Execution
Input (English): 6173, 9835, Q, K, U, 5813, l, X, 2431, 9669, 8645, l, 4361, 8801, 2977, 9699, N, O, 8967, 3739
Output (English): 6173, 9835, 17, 11, 21, 5813, 12, 24, 2431, 9669, 8645, 12, 4361, 8801, 2977, 9699, 14, 15, 8967, 3739