package yukicoder150508; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String c = sc.next() + sc.next(); int count = 0; int max = 0; for (int i = 0; i < c.length(); i++) { if (c.charAt(i) == 'o') { count++; max = Math.max(max, count); } else { count = 0; } } System.out.println(max); sc.close(); } }