Task: Program Execution
Input (English): R, Q, 6101, N, v
Output (English): 6101