Task: Program Execution
Input (English): p, 307, d, 359, 383
Output (English): 0, 3, 5, 7, 8, 9