Task: Program Execution
Input (English): 5, 6, ['v', 'q', 'c', 'w', 'p', '7785', '5389', '2937', '2157', '5173', 'd', '1283', '9731']
Output (English): 5877p