Task: Program Execution
Input (English): 5973, L, 8751, 2937, 1865, 5765, q, P, u, 7731, 2579, 4921, 7223, p
Output (English): 5973, 12, 8751, 2937, 1865, 5765, 17, 16, 21, 7731, 2579, 4921, 7223, 16