Task: Program Execution
Input (English): 6481, 3215, Q, 9313, l, 2823, 2489, R, 4131, 1967
Output (English): 7