Task: Program Execution
Input (English): 5, 5, ['Z', '9409', '4803', '6043', '8171', '9521']
Output (English): 8171