p [gets.count(?t),$_.count(?r),$_.count(?e)/2].min