class Solution:
def EntryNodeOfLoop(self, pHead):
# write code here
if not pHead: return None
mark=set()
curr=pHead
while curr:
if curr in mark: return curr
else: mark.add(curr)
curr=curr.next
return None