Task: Program Execution
Input (English): J, i, 2631, N, N, D, i, 1115, Q, 4919, n, h, 7951, c, 1109, 1145, X, O, r, F, 3047, 3301, C
Output (English): 10, 9, 2631, 14, 14, 4, 9, 1115, 17, 4919, 14, 8, 7951, 3, 1109, 1145, 24, 15, 18, 6, 3047, 3301, 3