Task: Program Execution
Input (English): E, K, 3317, 7949, Q, s, a, 5025, b, K, 6031, X
Output (English): 3, 4, 8, 11