#(^^*)(^^*)(*^^)(*^^)(^^*)(*^^)(*^^)# kaomoji = gets.chomp kaoRight, kaoLeft = 0, 0 5.step(kaomoji.length, 5) do |n| if kaomoji[n - 2] == "*" kaoRight += 1 else kaoLeft += 1 end end print kaoRight, " ", kaoLeft, "\n"