import java.util.*; class A{ static Scanner s = new Scanner(System.in); public static void main(String[] args){ String in[] = s.next().split("^…+"); int r=0; for(String s:in){ r = Math.max(r,s.length()); } System.out.println(r); } }