Task: Program Execution
Input (English): 381, S, x, 8115, v, J, J, e, W, 5923, a, 2421
Output (English): 1, 4, 10, 12