Task: Program Execution
Input (English): 2, 2, ['A', '981', '7503', 'i', 'o', 'D', 'G', '4991', '9371']
Output (English): 981