import java.util.Scanner; public class Main { Scanner sc = new Scanner(System.in); String InputChar = ""; int Count = 0; int Result = 0; public static void main(String[] args) { new Main().solve(); } void solve() { for(int i = 0; i < 2; i++) { InputChar = InputChar + sc.next(); } for(int i = 0; i < 14; i++) { if(InputChar.charAt(i) == 'o') { Count++; } else { Result = Math.max(Result, Count); Count = 0; } } Result = Math.max(Result, Count); System.out.println(Result); } }