Task: Program Execution
Input (English): 5, 10, ['x', '7787', 'U', '3847', '679', '1725', '6557', 'L', '2991', 'H', '145', 'c', 'a', '7391', 'L', 'X', 'w', '2019']
Output (English): 11952