import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] s = new String[14]; String s1 = sc.next() + sc.next(); for(int i = 0 ; i < 14 ; i++) s[i] = "" + s1.charAt(i); int ans = -1001001001; for(int i = 0 ; i < 14 ; i++) { if(s[i].equals("o")) { for(int j = i + 1 ; j < 14 ; j++) { if(s[j].equals("o")) { ans = Math.max(ans, j - i + 1); } else { break; } } } } if(ans == -1001001001) { System.out.println(0); } else { System.out.println(ans); } } }