Task: Program Execution
Input (English): 2, 6, ['K', '7049', '2863', 'O', 'D', '3233', '2595', '2547', '517', 'N']
Output (English): 13145