import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder InputChar = new StringBuilder(); int Result = 0; public static void main(String[] args) throws IOException { new Main().solve(); } void solve() throws IOException { for(int i = 0; i < 2; i++) { InputChar.append(br.readLine()); } Result = CountUp(InputChar); System.out.println(Result); } int CountUp(StringBuilder WorkInputChar) { int WorkResult = 0; int Count = 0; for(int i = 0; i < WorkInputChar.length(); i++) { if(WorkInputChar.charAt(i) == 'o') { Count++; WorkResult = Math.max(WorkResult, Count); } else { Count = 0; } } return WorkResult; } }