Task: Program Execution
Input (English): 2, 2, ['9453', '2637', '3513', 'a', 'p', 'd', 'D']
Output (English): 2637