import java.util.Scanner; public class Main { public static void main(String[] argv) { Scanner scanner = new Scanner(System.in); String s = scanner.next(); s += scanner.next(); int count = 0; int res = 0; for (int i = 0; i < 14; i++) { if (s.charAt(i) == 'o') { count++; res = Math.max(res, count); } else { count = 0; } } System.out.println(res); } }