# -*- coding:utf-8 -*-
# class RandomListNode:
#     def __init__(self, x):
#         self.label = x
#         self.next = None
#         self.random = None
class Solution:
    # 返回 RandomListNode
    def Clone(self, pHead):
        # write code here
        node=RandomListNode(None)
        head=node
        while pHead:
            node.next=RandomListNode(pHead.label)
            node=node.next
            node.next=pHead.next
            node.random=pHead.random
            pHead=pHead.next
        return head.next