import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class No203 { public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); String str2 = br.readLine(); String str3 = str + str2; System.out.println(check(str3)); } public static int check(String s){ int holiday = 0; int maxHoliday = 0; char[] day = s.toCharArray(); for(int i=0; i < 14; i++){ if(day[i] == 'o') holiday++; else{ if(maxHoliday < holiday){ maxHoliday = holiday; } holiday = 0; } } if(maxHoliday < holiday) return holiday; else return maxHoliday; } }