import static java.lang.System.*; import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.next(); List list = Arrays.asList(s.split("[^…]")); list.sort(Comparator.comparingInt(String::length).reversed()); out.println(list.size()==0?0:list.get(0).length()); } }