Task: Program Execution
Input (English): 4, 6, ['7507', 'W', '4539', '4447', '1047', 'y', 'M', '2331', 'A', '3283', '197', '7725', '663', '7435', 'W']
Output (English): 5494