import java.util.Scanner; public class Main { public static void main(String[] argv) { Scanner scanner = new Scanner(System.in); int d = scanner.nextInt(); String s = scanner.next(); s += scanner.next(); int res = 0; for (int i = 0; i < 14; ++i) { // int len = 0; // for (int j = 0; j < d && j < 14 - i; ++j) { // if (s.charAt(i + j) == 'o') { // break; // } // len++; // } int count = 0; for (int j = 0; j < 14; ++j) { // boolean isYukyu = (j - i >= 0) && ((j - i) < len); boolean isYukyu = (j - i >= 0) && ((j - i) < d); if (s.charAt(j) == 'o' || isYukyu) { count++; res = Math.max(res, count); } else { count = 0; } } } System.out.println(res); } }