Task: Program Execution
Input (English): 5, 5, ['h', 'v', 'k', '2603', '2217', 'E', '3187', '105']
Output (English): 2217