import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); System.out.println(solve(sc.next())); sc.close(); } public static int solve (String s) { int ret = 0; for (int i = 0; i < s.length();) { int cnt = 0; while (i < s.length() && s.charAt(i++) == '…') cnt++; ret = Math.max(ret, cnt); cnt = 0; } return ret; } }