import java.util.Scanner; public class Sirent { public static void main(String[] args) { Scanner s = new Scanner(System.in); StringBuilder str = new StringBuilder(s.next()); s.close(); int a = 0,b = 0; String ten = "…"; while(str.indexOf(ten) != -1){ if(str.indexOf(ten) == 0){ b++; str.deleteCharAt(0); }else{ a =Math.max(a, b); b = 1; str.delete(0, str.indexOf(ten)+1); } } a = Math.max(a, b); System.out.println(a); } }