Task: Program Execution
Input (English): n, j, 7, 141, 335, p, c, w, 97, g, i, d, s, 253, n
Output (English): 1, 2, 3, 4, 5, 7, 9