Task: Program Execution
Input (English): p, u, 291, j, 29, t, 339, 291, u, 367
Output (English): 1, 2, 3, 6, 7, 9