Task: Program Execution
Input (English): q, 235, o, 347, g, n
Output (English): 2, 3, 4, 5, 7