Task: Program Execution
Input (English): 5, 7, ['F', '3781', '4385', '4683', 'F', 'd', '6043', 'J', '7787', 'f']
Output (English): 3406dF