import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(), t = "…"; int n = 0; while (s.indexOf(t) >= 0) { n++; t += "…"; } System.out.println(n); } }