Task: Program Execution
Input (English): P, v, x, 1829, 827, M, 8073, 5631, 3777, w, 9843, n, 8849, 2569, 9589, i, 8555
Output (English): 1, 2, 3, 6, 10, 12, 16