package me.yukicoder.lv1; import java.util.Scanner; public class No0203 { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { int cntHolidays = 0; int tmp = 0; String s = sc.nextLine() + sc.nextLine(); char[] c = s.toCharArray(); for (int i = 0; i < 14; i++) { if (c[i] == 'o') { tmp++; } if (cntHolidays < tmp) { cntHolidays = tmp; } if (c[i] == 'x') { tmp = 0; } } System.out.println(cntHolidays); } } }