Task: Program Execution
Input (English): 7, 21, ['x', 'w', '3341', 'y', 'q', '5537', '7745', 'W', '1979', 'W', 'D', '8141', 'Y', 'e', '7887', 'Y', '1709', 'Y', '4053', 'Z', '8135', '3321']
Output (English): 5318Z3504Y9071Y7887eY1418DW9791W5477