Task: Program Execution
Input (English): g, x, 391, 497, w, 391, r, d, j, 433, q, 393
Output (English): 1, 3, 4, 7, 9