import java.util.*; public class Exercise32{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); char[] charArray = str.toCharArray(); int count = 0; int max = 0; for (int n = 0; n < charArray.length; n++){ if(charArray[n] == '…'){ count++; }else if (charArray[n] != '…'){ count = 0; } max = Math.max(max, count); } System.out.println(max); } }