Task: Program Execution
Input (English): L, L, 5791, I, 2799, Q, x, W
Output (English): 3, 5