Task: Program Execution
Input (English): B, K, 7845, 8243, 3641, 7491, 9695, L, B, P, e, Q, A, 4353, Q, 3211, 557, 6479, e, 4187
Output (English): 2, 11, 7845, 8243, 3641, 7491, 9695, 12, 2, 16, 5, 17, 1, 4353, 17, 3211, 557, 6479, 5, 4187