Task: Program Execution
Input (English): c, r, 327, k, v, 491, c, q
Output (English): 1, 2, 3, 4, 7, 9