Task: Program Execution
Input (English): 5905, 5797, 9385, b, N, 5713, 9489, F, r, 6397, D, 9863, q, Q
Output (English): 5905, 5797, 9385, 2, 14, 5713, 9489, 6, 18, 6397, 4, 9863, 17, 17