import java.io.BufferedReader; import java.io.InputStreamReader; public class NO203 { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); String S = br.readLine(); S += br.readLine(); int sLen = S.length(); int count = 0; int max = 0; for (int i = 0; i < sLen; i++) { if(S.substring(i, i+1).equals("o")){ count++; }else{ max = Math.max(max, count); count = 0; } } max = Math.max(max, count); System.out.println(max); } catch (Exception e) { System.err.println("Error:" + e.getMessage()); } } }