Task: Program Execution
Input (English): 3, 10, ['g', '5155', 'p', '6627', 'W', 'q', '2851', 'm', 's', '7781', 'u', '9739']
Output (English): 1877sm1582qW7266p