import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next() + sc.next(); int cnt = 0, max = 0; for(int i = 0; i < s.length(); i++){ if(s.charAt(i) == 'o'){ cnt++; max = Math.max(max, cnt); } else { cnt = 0; } } System.out.println(max); } }