Task: Program Execution
Input (English): 6007, 2261, 5631, U, L, u, 1791, 1307, w, 6539, m, 1061, 3589
Output (English): 6007, 2261, 5631, 21, 12, 21, 1791, 1307, 23, 6539, 13, 1061, 3589