Task: Program Execution
Input (English): 4, 11, ['g', 'v', 'M', 'A', 'l', '7087', 'L', '7981', 'P', 'L', '3495', '5323', 'm', '2263']
Output (English): 3495LP7981L7087lA