Task: Program Execution
Input (English): 4, 12, ['Q', 'E', 'P', 'B', '137', 'J', '2965', '4861', 'B', '1705', 'V', '6755', '5517', 'O', '9687', '2741', '847', '981', '1169', 'F', 'f', '2803', 'e', 'p', 'N', 'Y', 'p']
Output (English): B, 2741