import java.util.Scanner; public class No203 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String inputData = sc.next() + sc.next(); sc.close(); int renkyu = 1; int renkyuMax = 0; for(int i = 0; i < 13; i++){ if(inputData.charAt(i) == 'o' && inputData.charAt(i) == inputData.charAt(i + 1)){ renkyu++; if(renkyu > renkyuMax){ renkyuMax = renkyu; } }else{ renkyu = 1; } } System.out.println(renkyuMax); } }