s=gets a=3.map{|i|s.count :tre[i]} a[2]/=2 p a.min