Task: Program Execution
Input (English): D, F, 9843, 5807, 3505, R, 4997, 3567, 4329
Output (English): 3, 4, 5, 7, 8, 9