import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String S = reader.readLine(); int[] table = new int[S.length()]; for (int i = 0; i < S.length(); i++) { if (S.charAt(i) == '…') { table[i] = 1; } } for (int i = 1; i < S.length(); i++) { if(table[i] != 0) { table[i] = table[i] + table[i - 1]; } } System.out.println(Arrays.stream(table).max().getAsInt()); } }