import java.util.*; public class Run { public static void main (String arg[]) { Scanner scan = new Scanner(System.in); int ans = 0; int tmp = 0; boolean con = false; String days = scan.next() + scan.next(); for (int i = 0; i < 14; i++) { if (days.substring(i, i+1).equals("o")) { if (con) tmp++; else tmp = 1; if (tmp > ans) ans = tmp; con = true; } else { tmp = 0; con = false; } } System.out.println(ans); } }