import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); scan.close(); int cnt = 0; int max = 0; for(int i = 0; i < S.length(); i++) { char c = S.charAt(i); if(c == '…') { cnt ++; if(max < cnt) { max = cnt; } }else { cnt = 0; } } System.out.println(max); } }