using System; class Program { static void Main(string[] args) { string S = Console.ReadLine(); int left = 0; int right = 0; for (int i = 0; i < S.Length / 5; i++) { string a = S.Substring(i * 5, 5); if(a[1] == '*') { right++; }else { left++; } } Console.WriteLine(left + " " + right); Console.ReadLine(); } }