x = y = 0 for s in input(): x = [0, x+1][s == '…'] y = max(x, y) print(y)