Task: Program Execution
Input (English): 2, 8, ['X', '4517', '8061', 'l', 'p', 'M', '7699', 'o', 'P']
Output (English): 20277