Task: Program Execution
Input (English): 3, 4, ['941', '9691', 'S', '5163', 'Z', '3959', 'Y']
Output (English): S, 5163