Task: Program Execution
Input (English): 4835, 8651, 8903, 6559, 1699, 7387, 671, R, F
Output (English): 4835, 8651, 8903, 6559, 1699, 7387, 671, 18, 6