Task: Program Execution
Input (English): u, 261, d, 171, a
Output (English): 1, 2, 6, 7