Task: Program Execution
Input (English): 8951, 1231, L, F, 2323, u, 6391, 6199, D, U
Output (English): 1, 2, 5, 7, 8