Task: Program Execution
Input (English): 3, 5, ['1377', 'n', 'H', '1573', '5357', '977', '8991', 'l']
Output (English): 6930