def getm(a):
dic={}
for x,y in a:
dic[y]=dic.get(y,0)+1
xdic={v:k for k,v in dic.items()}
return xdic[max(xdic)]
if __name__=='__main__':
print(getm([(2,4),(5,3),(6,3),(7,3)]))
def getm(a):
dic={}
for x,y in a:
dic[y]=dic.get(y,0)+1
xdic={v:k for k,v in dic.items()}
return xdic[max(xdic)]
if __name__=='__main__':
print(getm([(2,4),(5,3),(6,3),(7,3)]))