Task: Program Execution
Input (English): A, B, 5191, a, Z, l, 5117, 9661, h, s, q, 8373, 5497, b, 8909
Output (English): 3, 7, 8, 12, 13, 15