Task: Program Execution
Input (English): 4, 5, ['2933', '6141', 'W', 'D', '525', '5507']
Output (English): D, 525