Task: Program Execution
Input (English): 3, 8, ['1197', 'z', 'J', '6395', 'v', 'g', 't', 'r', 'L']
Output (English): rtgv6395J