Task: Program Execution
Input (English): 5, 20, ['v', '2017', 'T', '3807', '6813', 'N', '6417', 's', 'R', 'K', '343', '4257', '5349', '2807', 'k', '8443', 'c', '5433', 'F', '5245', '9729']
Output (English): 45107