Task: Program Execution
Input (English): 2, 4, ['9055', '583', 'N', '3453', '2729', '2597', 'a', 'T', 'c', '2099', 'p', 'd', 'w']
Output (English): 4036