Task: Program Execution
Input (English): 15, 18, ['E', '5741', 'o', '2051', 'g', 'y', 'b', 'Q', '6259', 'X', 'm', '2321', 'K', 'r', 'G', '7979', 'B', '903', '3893']
Output (English): 8882