Task: Program Execution
Input (English): 31, 51, e, b, p, 391, 167, 473, 393
Output (English): 1, 3, 4, 5, 6, 7, 9