Task: Program Execution
Input (English): 127, 369, p, 437, 493, p
Output (English): 1, 2, 3, 4, 6, 7, 9