Task: Program Execution
Input (English): 3, 5, ['S', '5997', '9849', 'H', 'd', '6469', '3401', 'U', '4273', '1589', '7679', '8669']
Output (English): 9849, H, d