import sequtils, unicode


proc group[T](a: seq[T]): seq[(T, int)] =
  if a.len == 1: return @[(a[0], 1)]
  var
    i = 1
    cnt = 1
  while i < a.len:
    if a[i] == a[i.pred]:
      cnt.inc
    else:
      result.add (a[i.pred], cnt)
      cnt = 1
    i.inc
  result.add (a[i.pred], cnt)


let
  s = stdin.readLine
  bools = s.toRunes.mapIt($it == "…")
  xs = bools.group.filterIt(it[0]).mapIt(it[1])

echo:
  if xs.len == 0: 0
  else: xs.max