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