import java.util.*; public class Main { public static void main (String[] args) throws Exception { Scanner sc = new Scanner(System.in); char[] arr = sc.next().toCharArray(); int left = 0; int right = 0; for (int i = 0; (i + 1) * 5 <= arr.length; i++) { if (arr[i * 5 + 3] == '*') { left++; } else if (arr[i * 5 + 1] == '*') { right++; } } System.out.println(left + " " + right); } }