import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; import java.math.*; public class Main { public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); String a = br.readLine()+ br.readLine(); int l = a.length(); int chain = 0; int max = 0; for(int i = 0; i < l; i++){ char c = a.charAt(i); if(c=='o'){ chain++; }else{ max = Math.max(max,chain); chain = 0; } } max = Math.max(max,chain); sb.append(max); System.out.println(sb); } }