import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String args[] ) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); int max = 0; boolean ten = false; int cnt = 0; for (int i = 0; i <= line.length(); i++) { if (i != line.length() && line.charAt(i) == '…') { ten = true; cnt++; } else { if (ten) { if (max < cnt) { max = cnt; } cnt = 0; ten = false; } } } System.out.println(max); } }