Task: Program Execution
Input (English): 3, 6, ['W', '3491', '1423', '671', '3925', '8913', '1027', '507', 'G', '2011', '7087', '6417', '9157']
Output (English): 319852931763241