import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { String s = sc.next(); int ret = 0; int tmp = 0; for (int i = 0;i < s.length();i++) { if (s.substring(i, i+1).equals("…")) { tmp++; } else { tmp = 0; } ret = Math.max(ret, tmp); } System.out.println(ret); } }