Task: Program Execution
Input (English): 2, ['S', '6845', 'd', '9819', 'X', '3623']
Output (English): S, 6845