s = gets.chomp puts "#{s.count(?Y)} #{s.count(?E)} #{s.count(?A)} #{s.count(?H)} #{s.count(?!)}"