Task: Program Execution
Input (English): P, 8741, 9099, 4307, w, 5, 1389, 3939, 7941, 7017, f, 9951, S
Output (English): 1, 5, 11, 13