Task: Program Execution
Input (English): 465, 141, 87, 389, 175, n, p
Output (English): 1, 3, 4, 5, 6, 7, 8, 9