gets p gets.split.map(&:to_i).group_by{|i|i}.max_by{|k,v|[v.size,k]}[0]