Task: Program Execution
Input (English): p, 123, 231, n, n, j, e, 339, 327
Output (English): 1, 2, 3, 7, 9