Task: Program Execution
Input (English): 2, 6, ['k', 'p', '843', '2959', 'Q', '81']
Output (English): 18Q9592348p