Task: Program Execution
Input (English): 9, 161, 27, u, 443, d, l, 163
Output (English): 1, 2, 3, 4, 6, 7, 9