Task: Program Execution
Input (English): 7, 10, ['1457', '1229', 'V', 'X', 'W', 'U', '811', 'P', 'a', '6449', 'S', 'D']
Output (English): 7260