Task: Program Execution
Input (English): 3, 4, ['V', 'K', 'J', '3043', 'a', 'M', '3231', '5345', '6677']
Output (English): 3043