Task: Program Execution
Input (English): 3, 6, ['5559', 'K', 'B', 'x', '5851', 'K', '4259', '8301', 'D', '6959', '5451', '1035']
Output (English): B, x, 5851, K