Task: Program Execution
Input (English): P, 6299, 9655, l, 6317, 2139, 3347, l, 3095, 7363, 3115, 7529, R
Output (English): 48859