import java.util.*; class Test32{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int right = 0; int left = 0; String str = sc.next(); for(int i=1; i<=(str.length()-1)/5; i++){ if(str.charAt((2+(i-1)*5)-1) == '*'){ right++; }else if(str.charAt((4+(i-1)*5)-1) == '*'){ left++; } } System.out.println(right+" "+left); } }