import java.util.Scanner; public class Main_yukicoder341 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.next().toCharArray(); int max = 0; int len = 0; for (int i = 0; i < s.length; i++) { if (s[i] == '…') { len++; max = Math.max(max, len); } else { len = 0; } } System.out.println(max); sc.close(); } }