Task: Program Execution
Input (English): p, a, 5667, t, 7665, X, q, 5583, 8443
Output (English): 1, 2, 4, 6, 7