Task: Program Execution
Input (English): p, z, 395, 131, f, g, 187
Output (English): 1, 3, 5, 7, 8, 9