import std.stdio; import std.string; void main() { auto s = readln.chomp; int left = 0; int right = 0; for (int i = 0; i < s.length; i += 5) { if (s[i] == '#') break; if (s[i + 1] == '*') right++; else if (s[i + 3] == '*') left++; } writef("%d %d\n", left, right); }