Task: Program Execution
Input (English): g, 7597, 5111, Q, 2983, 5699, 4419, 9853, 5319, K
Output (English): 1, 4, 10