Task: Program Execution
Input (English): j, 5, m, 497, c, x, g, n, 41, w, 81
Output (English): 1, 4, 5, 7, 8, 9