#NEWLINE# def listen( nodes ) : #NEWLINE# #INDENT# current_max = nodes [ 0 ] #NEWLINE# node_counts = { #NEWLINE# #INDENT# nodes [ 0 ] : 1 , #NEWLINE# #UNINDENT# } #NEWLINE# for node in nodes [ 1 : ] : #NEWLINE# #INDENT# if ( node in node_counts ) : #NEWLINE# #INDENT# node_counts [ node ] += 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# node_counts [ node ] = 1 #NEWLINE# #UNINDENT# if ( node_counts [ node ] > node_counts [ current_max ] ) : #NEWLINE# #INDENT# current_max = node #NEWLINE# #UNINDENT# #UNINDENT# return current_max