arry = [0]
arry.clear()



most_appear_val = [0]
appear_cnt = 0
for i in 1..100 do
  count = arry.count(i)
  if( appear_cnt < count )
    most_appear_val.clear()
    most_appear_val.push(i)
    appear_cnt = count
  elsif( appear_cnt == count )
    most_appear_val.push(i)
  end
end

puts most_appear_val