gets l=gets.split.map &:to_i z=m=0 (1..6).map{|x|t=l.count(x);m<=t&&(m=t;z=x)} p z