Task: Program Execution
Input (English): p, d, v, 7661, J, 5143, 19, J, c, 4541, C, F, 5251, B, 193, G, 5497
Output (English): 4, 6, 7, 10, 13, 15, 17