Task: Program Execution
Input (English): 5191, 7165, R, l, G
Output (English): 5191, 7165, 18, 12, 7