Task: Program Execution
Input (English): 4, 10, ['1147', '6337', '2787', 'P', 'z', 'g', '1291', 'X', '9967', '3273']
Output (English): Pzg1291X99673273