Task: Program Execution
Input (English): 331, q, 369, 223, 31, w, g, r, g, g, y, p
Output (English): 1, 2, 3, 6, 9