Task: Program Execution
Input (English): 10, 12, ['V', 'u', '595', '6877', 'h', '5315', 'a', 'S', 'T', '9793', 'E', '8261', 'H']
Output (English): 18054