Task: Program Execution
Input (English): p, 379, v, 21, x, w, 67, y, 399, h
Output (English): 1, 2, 3, 6, 7, 9