puts Array.new(3) { gets }.group_by{|x| x}.to_a.map{|x| [x[0], x[1].size]}.minmax_by{|x| x[1]}[1][0]