Task: Program Execution
Input (English): 2, 3, ['9709', '8405', 'S', '1627', '1437', 'H']
Output (English): S, 8405