Task: Program Execution
Input (English): 4, 6, ['4795', 'A', 'H', '5395', 'N', 'M', '9977', '5043', '4409', 'R', '2619', '9993']
Output (English): 5395