Task: Program Execution
Input (English): 705, v, N, 3337, m, B, N, 173, 9979, f, 5043, 2863, 5121, 155, 2379, U, B, 6095, v
Output (English): 705, 22, 14, 3337, 13, 2, 14, 173, 9979, 6, 5043, 2863, 5121, 155, 2379, 21, 2, 6095, 22