Task: Program Execution
Input (English): 1971, 4307, R
Output (English): 6278