Task: Program Execution
Input (English): 4477, 8061, r, d, l, D, 7033, 7411, 1171
Output (English): 1, 2, 7, 8, 9