Task: Program Execution
Input (English): r, A, 6491, Q, 5331, W
Output (English): 3, 5