Task: Program Execution
Input (English): 3, 12, ['x', '9177', 'b', '2979', '8955', 'a', '4659', 'f', '4287', '1359', '8117', 'g']
Output (English): g811713594287f4659a89552979b