s=gets.chomp

t='YEAH!'
t.each_char do |c|
  puts s.count(c)
end