Task: Program Execution
Input (English): 9405, 1573, 6777, u, l, d, 8031, 4901, M, 7945, 9889, r
Output (English): u, l, d, M, r