import java.util.Scanner; public class Main { private String str; public void setStr(String str){ this.str = str; } public String getStr(){ return str; } public void countNum(){ int num = 0,ans = 0; for(int i = 0;i < this.str.length();i++){ if(str.substring(i,i + 1).equals("…")) { num++; }else{ ans = Math.max(num,ans); num = 0; } } System.out.println(ans); } public static void main(String[] args) { Scanner sc = new Scanner(System.in); Main m = new Main(); m.setStr(sc.next()); m.countNum(); } }