Task: Program Execution
Input (English): p, 371, 21, 109, 175
Output (English): 0, 1, 2, 3, 5, 7, 9