import bisect import collections import copy import heapq import itertools import math import os import sys import time import queue import sys import codecs sys.stdin = codecs.open('input.txt', 'r', encoding="utf-8") s = input() a = 0 ans = 0 for i in list(s): if i == "…": a += 1 else: ans = max(a, ans) a = 0 print(ans)