Task: Program Execution
Input (English): 5, 12, ['4309', '3719', '5845', '9591', 'P', 'S', '1173', '4211', '511', 'r', 'Z', '2905', '7471', '851', 'd', '9241', '9727', '2131', '3469', 'z']
Output (English): 2905Zr51142111173SP