Task: Program Execution
Input (English): p, 109, 439, 337, z
Output (English): 0, 1, 3, 4, 7, 9