Task: Program Execution
Input (English): 2, 16, ['2457', 'X', 'x', 'h', '4285', 'x', '8295', 'N', '8997', 'N', '8899', 'f', '4967', 'F', '4309', 'Z', '6627']
Output (English): Xxh4285x8295N8997N8899f4967F4309Z