import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int count = 0, tmpCount = 0; String str = scan.next() + scan.next() + "d"; String[] strArray = str.split(""); for (String holiday : strArray) { if (holiday.equals("o")) { tmpCount += 1; } else { if (tmpCount > count) { count = tmpCount; } tmpCount = 0; } } System.out.println(count); } }