Task: Program Execution
Input (English): p, b, 71, 139, 21, p, 445, b
Output (English): 1, 2, 3, 4, 5, 7, 9