Task: Program Execution
Input (English): 5971, A, 95, 5623, Q, 8963, 6793, 4845, 6097, 7027, d
Output (English): 2, 5, 11