import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No00000495_Main { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); public static void main(String[] args) throws IOException { String s = br.readLine(); int l =0, r = 0; for(int i = 0; i < s.length()-1; i+= 5) { if(s.substring(i, i + 5).indexOf("*") == 1) { r++; } else { l++; } } System.out.println(l + " "+ r); } }