#!/usr/bin/env python #coding:utf8 def read(): return raw_input().decode('utf-8') def work(s): ans = 0 idx = 0 while idx < len(s): cnt = 0 while idx < len(s) and s[idx] == '…'.decode('utf-8'): idx += 1 cnt += 1 ans = max(ans, cnt) idx += 1 print ans if __name__ == "__main__": work(read())