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