Task: Program Execution
Input (English): u, 367, l, 341, d
Output (English): 1, 3, 4, 6, 7