Reconstruct Yanqing's code