import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); int ans = 0; int[] table = new int[S.length()]; for(int i = 0; i < S.length(); i++) { if(S.charAt(i) == '…') table[i] = 1; if((i > 0) && (table[i] != 0)) table[i] = table[i] + table[i - 1]; } for(int i = 0; i < S.length(); i++) { ans = Math.max(ans, table[i]); } System.out.println(ans); } }