Task: Program Execution
Input (English): 9161, 3151, L, F, m
Output (English): L, F, m, 9161, 3151