Task: Program Execution
Input (English): c, 97, 97, g, h, 363, c, g, 487, e, g, q
Output (English): 3, 4, 6, 7, 8, 9