Task: Program Execution
Input (English): 2, 21, ['e', '8453', 'b', 'Z', 'R', 'T', 'y', 'B', 'C', '3033', '8221', '1189', '1879', '6109', '6025', '647', '1961', 'o', 'A', '2531', 'B']
Output (English): 40048