import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class No495{ public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int left = 0; int right = 0; Hantei(br,left,right); } catch(IOException e){ e.getStackTrace(); } } public static void Hantei(BufferedReader br, int left, int right) throws IOException{ String str = br.readLine(); boolean bln = true; int i = 0; while(bln){ if(str.charAt(5*i) == '#'){ bln = false; } else if(str.charAt(5*i+3) == '*'){ left++; i++; } else { right++; i++; } } System.out.println(left +" "+ right); } }