Task: Program Execution
Input (English): P, 8261, 6751, q, 2771, J, 2823, l, h, 6819, k, 6913, 9457, p, 4553, A, 5933, r, W, 785
Output (English): 2, 3, 5, 7, 10, 12, 13, 15, 17, 20