Task: Program Execution
Input (English): 5, 5937, U, 6381, 17, 3653, N, 7027, j, 3607
Output (English): 3, 7, 9