Task: Program Execution
Input (English): R, 6789, 9449, 5505, 1877, W, j
Output (English): 3